Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:40 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ir imaging

Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 03:50pm 25 Jun 2023
Copy link to clipboard 
Print this post

Could these work with pico and lcd? They are quite expensive ready made.
https://www.aliexpress.com/i/1005004176046297.html
not from aliexpress though, just device info. stan

https://thepihut.com/products/m5stick-t-lite-thermal-camera-dev-kit-mlx90640?
Edited 2023-06-26 02:10 by stanleyella
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 469
Posted: 09:00pm 25 Jun 2023
Copy link to clipboard 
Print this post

https://www.aliexpress.com/i/1005004176046297.html

https://thepihut.com/products/m5stick-t-lite-thermal-camera-dev-kit-mlx90640?
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 10:34pm 25 Jun 2023
Copy link to clipboard 
Print this post

The data sheet, as normal, too complicated. why can't they make it simple foe i2c, just the commands to make it work.. buts that's a dream

MLX90640-Datasheet-Melexis.pdf
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
Posted: 12:20am 26 Jun 2023
Copy link to clipboard 
Print this post

This months Silicon Chip magazine has a project for a Thermal Camera usig a AMG8833 camera module (Ali Express). It is I2C and connects to the Picomite and displays the image on an LCD display.

AliExpress
Edited 2023-06-26 10:22 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 482
Posted: 01:43am 26 Jun 2023
Copy link to clipboard 
Print this post

Looks like the AMG8833 is an 8x8 array ?

I hope it uses a 24x32 array which would be better
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 06:05am 26 Jun 2023
Copy link to clipboard 
Print this post

So that'll be 6 months before we see that article over here. If ever.  :)

That seems to be an excellent data sheet. Stan. You should see some of them! Remember it's a low-level data sheet for the device alone, not for a unit with that built in with a micro to control it for you. It's like seeing the data sheet for a RAM chip. This is where the Arduino libraries come in - someone will write chunks of code that you call with a simple one-line command.

You don't usually attempt to use a device like that from BASIC - it's too high level and slow. You need C to get the best out of it as you need two complete frame scans to build up a picture - very much like the system used on TVs, only on this you have a choice of either alternate lines (like PAL) or alternate pixels in a checkerboard (the default). Either way needs a frame buffer to store the completed image and a CPU to keep it updated.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 02:38pm 26 Jun 2023
Copy link to clipboard 
Print this post

Thanks Mick. I've seen data sheets for ili9341 and ssd1306 and Vl53lox but to difficult for me to initialise and use the devices with gcbasic, had to wait until the displays were included and vl53lox explained.
Arduino has libraries for nearly any device but in C.
Raspberry Pi has libraries in python which is probably easier to convert to basic.
So this thermal imager won't be doable with mmb and pico it seems.
Maybe 1 sensor like in a cheap laser thermometer mounted on a rc servo scanning L-R
mounted on another rc servo scanning U-D. As it scans temp ic converted to colour and plotted on lcd.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:23pm 26 Jun 2023
Copy link to clipboard 
Print this post

No doubt it would be *possible* to do get an image from it but what would you do with it after you've got it?

You may be able to work with it using the I2C commands in MMBasic. See section 13.3 (page 54) for a flow chart to get an image. It shows you the sections to look up for each step.

You should be able to pack an image into a 24-element integer array. (24 rows of 32 bits). Set the device for line scans (not checkerboard). Read subgroup 0 into even numbered elements of the array starting at zero then go back and read subgroup 1 into the odd numbered elements. Now you have a complete picture in the array. What you can do with it in that form is something else. :)

BASIC isn't what most people would use to analyze an image for moving objects, for example. A robot doing that would repeatedly bash its arm through objects because it would be too slow. :) However, if you take images into two arrays alternately and  compare them you could detect movement (but no detail, only that something has moved). MATH M_PRINT would display the picture for you, I think.

This thing seems a bit slow. After switch on it can take up to 4 mins to thermally stabilise.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 05:08pm 26 Jun 2023
Copy link to clipboard 
Print this post

I saw this Bigclive video of $98 phone with thermal imaging. A thermal imaging camera with same res would cost more. Some bogus ones too that use 8x8 sensor but look better.
https://www.youtube.com/watch?v=4002_MqVNfY

https://www.ebay.co.uk/itm/354870604394?
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 08:03pm 26 Jun 2023
Copy link to clipboard 
Print this post

I think (24 rows of 32 bits) should be ... 64 bits :)

Probably 12-element instead of 24-element but I don't know where the 24 came from...

John
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 09:11pm 26 Jun 2023
Copy link to clipboard 
Print this post

You need 32 bits per row of the array. Zero the rest. Even if it comes in as a 64-bit word you have to split it into two array elements or you can't print the picture with MATH_M PRINT as it prints one line per row of the array.

There's no point in having it as 12 elements as the picture will make no sense because of the line interleaving. You could load a 12-element array with 64-bit words but you'd then have to split it up into a 24 element 32 bit one. :)

From the flow chart in section 10.5 (page 13) it looks like you have to read successive subpages, they aren't actually scanned as interleaved. You seem to have to tell it which subpage to get and it sets the new data flag when it's ready for you, which makes me think that although they are 64 bit words you have to get 32 bits at once.

I'll not be investigating these anyway. It's not of much interest to me.  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 09:19pm 26 Jun 2023
Copy link to clipboard 
Print this post

I thought mmb pico could do something with the sensor but the data sheet is complex but maybe there's a simpler solution in there else I think Mick's correct.
My laser ir thermometer was £9 with its display and the laser so cheap but great for checking components sometimes, but a picture says a thousand words so seeing all hot spots would be nicer. I could not justify the cost of a "real" ir imaging camera.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 09:51pm 26 Jun 2023
Copy link to clipboard 
Print this post

Just stick a wet finger on the heatsink or chip:
No effect - it's safe.
Spit boils off - very risky.
Manufacturer's logo burned into finger tip - probably too late to worry about the silicon.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 482
Posted: 11:20pm 26 Jun 2023
Copy link to clipboard 
Print this post

  Quote  where the 24 came from


24x32  ir sensor
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 831
Posted: 09:33am 27 Jun 2023
Copy link to clipboard 
Print this post

I used the MLX90640 with this code  on an Odroid-Go.



Frank
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024