0

Thermal camera arduino
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Thermal camera arduino

by Faca87 on Sun Aug 01, 2021 2:50 am

Dear all, I'interested to build a thermal camera by Arduino for educational reason.

I found the AMG8833 IR 8x8 and the display...but the display is the Adafruit ST7789 1.54" 240x240px therefore, how to to change the code showed here https://learn.adafruit.com/adafruit-amg ... mal-camera (in this example a 1.4" display has been used)

Moreover, by pics of the example it looks likes that the display just show the temperature color, of the object, bit there isn't a temperature scale, therefore we can't know the blu what temperature is, the red what temperature is etc...how to modify the code to add the scale?
Kind regards

Faca87
 
Posts: 2
Joined: Sun Aug 01, 2021 2:41 am

Re: Thermal camera arduino

by sj_remington on Sun Aug 01, 2021 10:29 am

In order to change code, you first have to understand how it works. Go through the original code, line by line, looking up function calls in the various code libraries, and make sure you know the purpose of each one. Then check the documentation for the new display and see what you have to change in order to duplicate the original function. Once you have the modified example running correctly, change the code to accommodate new features, change image size, etc.

To represent the color/temperature scale, most people add an extra feature to the screen, called a colorbar. You can make this by plotting several rectangles filled with a particular temperature value, and display text along side with the temperature.

Example (colorbar to the right):
Capture.PNG
Capture.PNG (20.22 KiB) Viewed 178 times


Definitely an educational experience!

sj_remington
 
Posts: 135
Joined: Mon Jul 27, 2020 4:51 pm

Re: Thermal camera arduino

by Faca87 on Fri Aug 13, 2021 6:07 am

Hello, yes...I was talking about the color bar...is there any example code?

Faca87
 
Posts: 2
Joined: Sun Aug 01, 2021 2:41 am

Re: Thermal camera arduino

by sj_remington on Fri Aug 13, 2021 4:21 pm

There are plenty of code examples for drawing filled rectangles and text, which is all you need to make a color bar.

Pick a display and start learning how to program it, by studying the library examples and documentation.

sj_remington
 
Posts: 135
Joined: Mon Jul 27, 2020 4:51 pm

Please be positive and constructive with your questions and comments.