Giter Site home page Giter Site logo

maxritter / diy-thermocam Goto Github PK

View Code? Open in Web Editor NEW
1.1K 113.0 173.0 304.74 MB

A do-it-yourself thermal imager, compatible with the FLIR Lepton 2.5, 3.1R and 3.5 sensor with Arduino firmware

Home Page: http://www.diy-thermocam.net

License: GNU General Public License v3.0

C++ 79.19% C 14.85% Python 5.96%
arduino flir flir-cameras flir-lepton flir-lepton-purethermal infrared-images infrared-sensors lepton lwir teensy

diy-thermocam's People

Contributors

haraldg avatar mapperfr avatar maxritter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diy-thermocam's Issues

RAM Requirements for ThermoCam

Hi, I know you are using the Teensy 3.6. I was wondering how much RAM memory I would need if I were to choose my own micro controller. How much did you need to process the 160 x 120 thermal images.

Wire.endTransmission() and Wire.beginTransmission() should not be used with Wire.requestFrom().

The Wire.endTransmission() after the Wire.requestFrom() and the Wire.beginTransmission() before the Wire.requestFrom() can be removed in the next files:

  • DIY-Thermocam/Firmware/Source/Hardware/Touchscreen/FT6206_Touchscreen.cpp
  • DIY-Thermocam/Firmware/Source/Hardware/Lepton.h
  • DIY-Thermocam/Firmware/Source/Hardware/MLX90614.h

In "DIY-Thermocam/Firmware/Source/Hardware/Touchscreen/FT6206_Touchscreen.cpp" there is also requesting 32 bytes, but using only 16 bytes.

Explanation: Common-mistakes#2 number 2 and 3.

Astronaut

In the Scientific Paper it states "Around 1800, the astronaut William Herschel" (page 5, paragraph 3). I think that should be astronomer.

Calibration stuck at 0%

Hi,

after the initial setup (setting date etc.) the screen shows the calibation screen stuck at 0%.
We waited for about 1minute or more but it did not change in any way.

Any hints on how to get more debug output out of the firmware or any other ideas how to tackle
this problem would be appreciated.

Thanks
Leo

Microcontroller teensey 3.5 is not detected on my pc

Hello everyone, i m already finished the realisation of the thermal camera, the problem that stops me is non detection of teensy, I installed the drivers needed in "device firmware" but the probleme still exist, no port is detected on arduino ide when i put on my teensy, please i need help

thermal analysis software for alternative OS

Hi,

it seems only the live viewer software is platform independent. All the other applications for working with thermal images are only available for windows it seems. Also I couldn't find the source code for any of them, so it seems porting any of them to linux is not a viaable option either.

Before is start writing something from scratch: Does anybody know of a free software program, that would be a good starting point for working with thermal raw data files?

BTW: As a first step I intend to add support for raw *.dat files to the traditional file(1) command.

Wrong Arducam delivered

Hello,

I wanted to build my own thermocam, but I got stuck because of the wrong parts. I used the links in the description, but I got some new version of the "Arducam 2MP Camera Shield“.
I used this link: https://www.ebay.com/itm/Arducam-Mini-module-Camera-Shield-w-2-MP-OV2640-for-Arduino-UNO-Mega2560-board-/281639729684

Unfortunately I bought it on eBay, but this camera doesn’t fit in the case.
I guess we need the version like IMG-1, but I got the „new“ version as seen on IMG-2.

IMG1:
img1

IMG2:
img2

Could you please tell me, how I can use the Version I got, or how I could get an "older" version of this camera?
Guess GroupGets still delivers the correct version, so where do they buy their stuff?

Can't imagine, that I'm the only with this issue. :)

Best regards :)

"Trying to start..." on boot menu

Hi,

i ordered a new display, which is resistive instead of capacitive. At first, everything was fine. I got to a menu to set up the time and date, but then after restart my camera get stuck on the boot menu.
Here is the current screen. Every time I start up, it get stuck at this screen.
2018-06-01 15 57 45

Does anyone has an idea, how to fix it?

I already flashed a new firmware to the camera (Version 2.46 from 17.04.2018).

Best regards

Silkscreen mirrored in gerber file

Hi there, i'm preparing to have a few PCBs made of the latest version (2.3) and the silkscreen text for the major components like the camera, lepton breakout etc. is mirrored in the gerber preview. Is this normal? Both the viewer at http://www.gerber-viewer.com/ and the one at http://jlcpcb.com shows reversed text for the bottom layer while the top layer is fine.

Error when plugging in SD-card

Hi,
whenever i plug in the SD- card (got one with 32 gb) the screen freezes and sometimes weird graphical bugs appear. Have you ever heard of this error? Or might the reason be the 32 gb instead of the proposed 8 gb?

Thanks for your awsome project and support. Wishes

Problems FIRST firmware installation

Hello,

I can't install the firmware for the fist time in the camera. I have just assembled it all and so I want to flash the firmware.

With the updater from the software folder, and the last HEX files from the firware section. I connect the camera to the computer ( I have installed the DRIVE.exe) and I get these messages.

How do you see them?

image

image

image

Enclosure thickness

It'd be nice if you listed what material thickness you designed the enclosure files for in the README.md for the enclosure :)

my touchscreen doesn t respond

I plugged my camera v1 on pc, the screen showed me the initialization images and the message "this is your first use please touch screen" I touch the screen but no answer, do I have to configure the screen?
i need help
Thanks a lot

Data doesn't get transfered to PC

Hi,

i can connect my DIY-Thermocam (TC) with ThermalDataView and ThermoVision, but the programs don't recieve any data from the device. (No captured images, no live-stream)

I can charge the TC and update the firmware. Do you have any suggestion where i should start looking for?

issue with the screen

hello;
i have a problem with the screen ; i followed all steps of the firmware update guide and the thermocam lights up, but it shows me this message, although I touch the screen it does not change , i don't really know what is the problem, please ; I am looking for help :
43dd4d2c-07af-46ef-b1c4-aa598a797d4b
9202ff87-776c-4381-b8c2-ac85479c8baf

Compiling Problems

Hello,
I'm trying to build a version of the DIYThermoCam and I'm trying to get the DIY-Thermocam.ino to compile in the Arduino IDE version 1.8.3 with board settings set to Teensy (I've tried setting the board to both the 3.2/3.1, and the 3.6 options). When I do, it always gives me the errors seen below:

C:\Users\Student\AppData\Local\Temp\arduino_build_408755\sketch\Thermal/Load.h:785: undefined reference to `FatFile::openNext(FatFile*, unsigned char)'

C:\Users\Student\AppData\Local\Temp\arduino_build_408755\sketch\Thermal/Load.h:826: undefined reference to `FatFile::close()'

"C:\Users\Student\AppData\Local\Temp\arduino_build_408755\sketch\Thermal/Load.h:813: undefined reference to `FatFile::close()'".

I went to the address shown in the above error and I couldn't find anything related to it in the Load.h file. I couldn't find anything in where the actual file was saved when I downloaded the firmware either. I didn't change anything in the files after I downloaded them from Github. Also, what Programmer should the IDE be set to use? It's currently set to "Atmel SAM-ICE". Could you help me fix this please?

Lepton 2.5 & 3.0 ambient temperature compensation

I'm referring to "ambient temperature compensation" as an automatic correction of the pixel values based on the temperature of the lepton core. I'm not referring to flat-field correction.

  1. Does the Lepton 2.5 have ambient temperature compensation enabled by default, without any commands being sent to it?

  2. Does the Lepton 3.0 have ambient temperature compensation enabled by default, without any commands being sent to it?

assembly instructions feedback

First off, I'm impressed by the great documentation so far! I thought I would give my feedback on the building instructions after just having gone through assembling one camera. None of these were dramatic, as I managed to put it together, but it might be nice to know about.

  1. I missed some parts in my kit:
  • the male 40 pin header that should have been on the display module.
  • the pieces of wire and heatshrink
  1. the 40 pin female header had a little piece of plastic sticking out on on of the long sides, which i had to file off to make it fit
  2. In step 3 "remove the overlapping pieces with a gripper" took me a moment to be sure what you meant. I would write something like "Cut the pins short with cutting pliers, right above the solder points you just made"
  3. In step 5 I was surprised with having to break pieces off haha 😄
  4. In step 6 I had to look very close to figure out that the black spacers were not all the same size. If someone tries to go fast they will probably do this wrong. Also the 3mm spacer in the bottom right corner didn't want to stay put in that place,it kept falling out.
  5. In step 7 I first thought you wanted me to remove the plastic piece on the front of the thermal camera. Maybe you should write more clearly that it is the plastic from the angled male pins that should be removed?
  6. in step 8 I actually soldered the angled female header after having put everything together. Also I don't get why you wanted 2 of the spacers to not be on the top 2 bolts. Don't they fit there maybe?
  7. In step 10, maybe you can write something about how to identify which version of the FLIR lepton sensor you have?
  8. In step 11 I first soldered the led in all the way like you write, but then I couldn't bend it 90 degrees, so had to re-do that one.
  9. In which step should you actually place the battery? It is never written (or I missed it)
  10. In step 12 I mounted the tripod mount pointing outwards. It was only once I was done that I saw a picture somewhere else of how it should have been. Could you add a photo in this step?
  11. In step 19, maybe you can describe which way the right panel should be in. It is hard to see that it actually makes a difference which way is up.

Anyway, do far I'm really impressed, and really looking forward to using it!

Updating from FW1.24

image

Hi I'm trying to get our cam up to the latest FW but am having issues with the Updater.
When I hit connect the cam says that its connected and turns its screen off but the updater gets stuck on the hardware version detector part.
is there an older version of the updater available so that I could maybe bring it up to speed in stages?

Thanks

poor calibration performance

Hi,

the automatic calibration procedure is quite nice - at least it is much simpler than any manual calibration would be. However results are somewhat underwhelming: Most of the time my DIY-thermocam shows temperatures about 3-6K too low. I think the problem mainly comes from the spot sensor: It shows quite reasonable values around room temperature, but at colder temperatures the values become quite too low: For example today the temperature outside was clearly above 0°C (air and any surfaced I can think of), but the spot sensor showed temperatures around -8°C.

Is there any way to recalibrate the spot sensor itself, to see if this yields better calibration of thermal images too?

Im also thinking about just taking raw data with the thermocam and do any calibration and analysis on the PC later. But this is made more difficult by #15.

Charging and powering over USB

Hi,
Can it be possible to change the powering parts to allow the device to work and be charged at the same time, like cell phones ?
This will remove the need of the power switch.
It can allow to work with external batteries, and let change these external batteries without having to stop operations.

Practice Image Set

I am waiting on all of my parts to arrive, but want to start developing in the meantime. Does anyone have raw data and temperature files taken on this camera that they would be willing to share?

Thanks!

Cannot connect to camera as a mass storage device after firmware update

I have a version 1 DIY Thermocam that I have been using that has been running version 1.25 firmware. All functions supported by the 1.25 firmware worked as expected including mounting the camera as a mass storage device to transfer images to a P.C.

After I upgraded the firmware to version 2.46, I cannot mount the camera as a mass storage device. If I go into the camera menu and select the USB File Transfer icon and then select the YES button, the camera briefly displays the "Disconnect USB cable to return" message and then the camera reboots.

Is mounting the camera as a mass storage device supported in the 2.46 firmware for version 1 hardware?

System Info:
DIY Thermocam version 1 hardware flashed from version 1.25 firmware to version 2.46 firmware
Windows 10
Camera connected on COM5

Calibrating problems

Hi,
I just built my own DIY-Thermocam. Congratulations on the project! If I were more careful I would have taken some photos of the built process to share with you and here. I really like the thermography and made some attempts before.
Anyway. I know it is working, at least a part of it, because I can start the calibration process, and I can move the arrows to put thermo image over photo image. But after that, calibrations asks to point to different heat objects slowly, but my calibration process never changes, stays at 0%.
Also, I had to upload firmware version 2.40. I don't know why when uploading newer versions it says my teensy is not compatible.
One hint for everyone, I use Windows 10, and there was no way to upload firmware in COM10, but it was very easy with https://github.com/Koromix/tytools
Do anyone have any idea how to pass or bypass this calibration?
Thanks

Camera stopped working: can't identify the issue

Hi,

I managed to build the cam, flash the firmware, and start the cam. I was on the calibration screen when I turned it off, intending to do the calibration on the following day. Then the next morning, the cam didn't start. I first thought it was a battery issue, but I tested it, it charged OK, until 4.10 / 4.20V approx., and then the light turned green.

However, the cam doesn't start anymore. The issue seems to come from the Teensy: can't see the orange control led anymore, and the tension between Vb and Gnd is around 1V, nothing more.

It may also be coming from the coin cell battery: I thought it may be drained and changed it. The new one half-drained quite quickly, and it didn't change the teensy issue.

What do you think my issue would be? Is the Teensy dead because of a short circuit or something I might have done involuntary? Could it be coming from the coin cell battery? Could I have damaged the PCB in some way?

I have an extra Teensy 3.6. Do you think I can go ahead and change it right now, or is there a way to identify the source of the issue first?

It's already a lot of questions so I leave it there :). Any help appreciated, thanks!

Video out module: image too big for the SD card?

I'm trying to flash the video module image to the SD card on Windows 10 with Etcher but it appears that the image is too big for the SD card: image appears as being as large as 7.95 GB, while the SD card only has 7.82 GB available.
Am I the only one experiencing this?
Not a critical issue as I could switch for a bigger SD card, but if it's a recurring issue it might be worth mentioning it on readme file?
I'll try on macOS and report back here.

No USB Icon in the menu 2.47

Hello

I finished v2 yesterday

I have flashed the latest firmware 2.47

but I have no USB icon in the menu to transfer the files to the pc.

I would be glad about help

ThermoVision not connecting to camera

I've tried using the ThermoVision software from Joe-C, but cannot connect to the camera, at least not getting a live stream. I have firmware v2.44, and have tried ThermoVision v1.7 and 1.8 also. I am able to get a live stream from Thermal Live Viewer, on COM10 though. I've contacted Joe-C and sent him some troubleshooting info, but I was wondering if anyone else is having this problem?

Lepton 3.5 - high temperatures (>200°C)

First, thank you very much for this wonderful project. We bought a DIY-Thermocam V2 (Groupget Kit) with a Lepton 3.5. The hardware is working fine.
However, we have problems measuring temperature over 200°C. It seems that the values (on display and also in the .dat-file) are capped at 181.92 °C.

The Lepton 3.5 can support up to 400 - 450 °C in low gain mode. Is this a hardware or a firmware problem?

battery size doesn't fit

Hi,

finally got my DIY-Thermocam kit from groupgets. There are some minor annoyances, like I got two tripods but miss some other parts and the import tax was way havier then expected. However the real issue is not their fault: The battery doesn't fit between the display connector and the push button!

I just checked. They sent me this battery: https://www.sparkfun.com/products/13855, which is actually linked from the DIY-Thermocam readme. However this battery has the following dimensions: 5.6mm x 49.2mm x 68.8mm, while the README states the following max. dimens.: 60mm (w) x 55mm (l) x 6.5mm (h)

I think the link in the README should be removed and maybe groupgets notified, that they need to update their kit.

Can't update the firmware

Hi,
I finished to build the cam yesterday and I'm trying to make it work, but I can't pass the firmware update step. The cam does not appear as a COM port device, and I think that's why the updater can't see it :
capture2
I tried to update it on a Mac with teensyduino buyt it doesn't work either.
Any hint?
Thanks!

Microcontroller

Is it possible to use arduino nano/pro mini instead of teensy? Thank you!

choice of microcontroller

Hi,

this is a great project and I'm very likely to build a DIY-Thermocam myself.

However, I find it somewhat unfortunate, that the design is based around the TEENSY 3.6 instead of the
iMX233-OLinuXino-NANO which is cheaper, OSHW, industrial grade and already has many of the features on the board that DIY-Thermocam needs extra components for. Though admittedly getting things like the on board battery charger to work might require a non-trivial effort.

Anyway this issue is an attempt to find like-minded people who might join forces to adapt the design to the OLinuXino-NANO or solicit input on why this would be a bad idea.

Display with Fontchip possible

Hi,
at buydisplay.com i can only select a Display with Fontchip.
Will the Display also work with Fontchip or can you tell me another Onlineshop für the display?
Kind regards,
Andreas

SD Card not seen

I am currently building my second Thermocam, the first one was successful, but this time I have hit a problem.
The device boots up and I go through the setup screens without a problem. Unfortunately, the start up process stops with the message "Checking SD card..." and then "Please insert SD card". However, the SD card is inserted into the card reader properly. It is the one I used to test the first camera with and it worked then, I was able to save various thermal images to it.

My questions are:

  1. is a faulty card reader connection the only cause of this error (given the card has been tested in another Thermocam)
  2. is it possible to bypass the SD card detection part of the boot up process so that I can test the actual FLIR is working? I don't (at the moment) need to save any images.

i2c problem

When I used STM32 as the host and lepton as the slave, I did not respond to I2C. I added the pull-up resistance and the voltage was stable. What should I do with STM32 to provide the clock for lepton

firmware stops responding sometimes

It seems there is some condition, where the firmware gets stuck: The display freezes and the firmware doesn't react to any touch or button events. Turning the camera off and on fixes the problem.

I can't exactly reproduce it, but it happend to me three times now over a period of 1-2 hours. It always happens in the process of taking/saving an image. I have the gut feeling, that it might be related to bouncing of the button or the exact time or duration the button is pressed.

Sorry, I don't know how to dig into this further ATM. But I will try to get a feeling of how I need to press the button to trigger the crash.

compiling the firmware

I'm trying to compile the firmware myself, but I have some trouble understanding how things should fit together.

I got the Arduino IDE (1.8.5) and Teensyduino (1.41) installed, which was quite non-trivial as I'm on arm64 but only 32-bit arm binaries are provided. Anyway, it seems to work now.

But getting Visual Studio as is suggested in your README for arm64 linux seems not viable. So I tried building the firmware directly from Arduino IDE. After renaming the Folder "Source" into "DIY-Thermocam" I could open the sketch and the compile phase was successful. However the linker produced lots of errors about unresolved symbols.

Basically the problem seems to be, that the "external libraries" aren't actually external, but are copied into the source tree. The compiler finds and includes all header files, so there is no problem. However the *.cpp files of the libraries never get compiled, so the linker has nothing to link actually.

A few questions:

  1. Before I start messing with things: Do you have any recommendation on how to compile your code without Visual Studio?
  2. Since I guess it would be the most straight forward solution: Why are the external libraries copied into the project? Would I run into any trouble, if I just switched back to using the official libraries? Would such a change be acceptable for you upstream?
  3. I guess, I could write a Makefile for the libraries. But how would I then use this "manually" compiled library to build the sketch?

Fahrenheit not displaying properly in temp bar

I have a Lepton 3 with the spot sensor, firmware v2.44, and when I turn on the unit in °F mode, after the warmup, the numbers in the bar are wrong. They go from low negative numbers to extremely high positive numbers. If I change to °C, the numbers are still wrong, until I reboot the camera, then they are ok. If I switch to °F, the bar numbers are OK, unless I try to use Manual, try to adjust the min or max, the + and - buttons change the values by large steps. Something appears to be wrong with °F conversion.

Why can not debug and run to breakpoint

When I run the source code program, I add a few breakpoints and start debugging, but the program doesn't run to the breakpoint

He's always reporting the wrong thing
Unable to start debugging by opening project properties and navigating to...

I am very confused for this problem

USB connection stuck at "lepton_getRawValues()" function

I only have Teensy 3.6 and Lepton 2 (shutter) at the moment and connect them with cables. Every time I try to run the firmware, it will always stuck at "lepton_getRawValues()". This problem occurs because teensy never got 60 lines from lepton. It always loop at line 0 because the error value is count up to 255. I have tried with 2 pcs Lepton 2 (shutter) and 1 Lepton 2(non shutter) and the problem still exist. This is how I connect teensy with lepton :

  • pin 11 to MOSI
  • pin 12 to MISO
  • pin 14 to CLK
  • pin 15 to CS
  • pin 18 to SDA
  • pin 19 to SCL

I powered them from USB so I connect this two pin

  • pin GND (Teensy) to GND (Lepton)
  • pin Vin (Teensy) to Vin (Lepton)

I already test the Lepton module with my own code to read the package (using SPI and SPI1) and I can get number 0 - 60 from the first two bytes (ID bytes). So there should be no problem with my Lepton module.

Any idea why this happens?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.