Code Monkey home page Code Monkey logo

lepton's People

Contributors

bitreaper avatar danjulio avatar harshitnagar22 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

lepton's Issues

Building with idf.py fails

Hi Mate,

I love the work your doing with the Lepton.

I cloned your repository and tried to build it inside the VSCode terminal (Espressif Plugin for VSCode) but it failed due to some file dependencies. I was able to fix some of them by adding the REQUIRES keyword into the CMakeLists.txt file but some files appear to be missing from the repository all together.

../components/cmd/upd_utilities.c:27:10: fatal error: esp_ota_ops.h: No such file or directory
#include "esp_ota_ops.h"

../components/sys/ps_utilities.c:30:10: fatal error: nvs_flash.h: No such file or directory
#include "nvs_flash.h"

../components/cmd/json_utilities.h:41:10: fatal error: cJSON.h: No such file or directory
#include "cJSON.h"

These are the changes I made to the CMakeLists.txt files to resolve the other issues.

components/cmd/CMakeLists.txt
file(GLOB SOURCES *.c)

idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS . ../../main
REQUIRES clock lepton sys)

components/lepton/CMakeLists.txt
file(GLOB SOURCES *.c)

idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS . ../../main
REQUIRES i2c sys)

components/sys/CMakeLists.txt
file(GLOB SOURCES *.c)

idf_component_register(SRCS ${SOURCES}
INCLUDE_DIRS . ../../main
REQUIRES cmd)

Cheers!

Power by lipo

Hello
Can I use the Tcam-mini directly with a 3.7V lipo or do I need a voltage converter?
how many mAh
thanks

transfer stop while ffc

Hello,
This is very interesting project and would like to work with this. I am using pocketbeagle plus qqvga LCD (ST7735) and the code seems working pretty well. But you know, sometimes image transfer stops (Lepton freezes) and would like to solve this problem.

Before that, I see transfer stops (not freeze, CSN is de-asserted and PRU0/1 LEDs are off) when Lepton executes FFC automatically. I don't see any code handling FFC, it is under auto mode. It is separated from the image path (capture using PRU) then would like to know why it happens (or commanded to PRU from OS? how?). I think image capture must not stop while executing FFC...

interested in tcam

how can integrate publish mqtt topics on esp32, for send the value to some broker, ,the maxim distance of the lepton??? and the maximum grades on centigrades,that can measurement,i wan to make some proyects for electrical devices,in a substation electrical,thanks in advanced

Feature Request: Android App

Any plans in the works for an Android app to stream video and take snapshots from the tCam-mini? That would make for an excellent mobile setup, with the tCam-mini in AP mode, phone/tablet connected to the AP and no PC required.

ESP32 Python FFC Mode

Hello,

at first thank you for the wonderful project!

Because I want to integrate the tcam mini in an house alarm system with motion detection I encountered the automatic FFC to be a problem. A problem, because on the FFC action the motion detection is triggered. If I could get the FFC status oder control it manually this could be resolved. Therefore my question:

  1. Is it possible to read the FFC status via Python?
  2. Is it possible to set the FFC mode to manually via Python?
  3. If all the above is not possible: What would you recommend? :-)

Thank you very much
jperfo

Hex-File for TTGO T7 1.5

Hi,

i am trying to use the firmware with the Lilygo TTGO T7 1.5 board. Can you offer me a precompiled hex-file and the correct wiring for this board?

I have got a lot of problem because i am using the Lepton 2.5 with the Breakoutboard 1.4.

Thanks a lot.

cu kami

Image Analysis in FLIR TOOLS

Hi Dan,
Your program was very helpful for me, thanks for creating this.
Across the process a doubt came across that are you able to see metadata of thermal images in FLIR TOOLS software.

shutter control

hello,
I'm using esp32 and I want to ask if it's possible to control the shutter through a python command. Or how it could be controlled otherwise through a command.

thanks.
Radek

Packaging and Licensing

Very cool project, I have a t-cam mini on the way.

I thought I'd make up a pkgbuild of the applications for use on arch based distributions but I can't seem to find the source files or any build instructions. Are those components not intended to be open source? I'm also not seeing licensing information for many of the other files. I'm not sure that I can do much more than packaging and some functional additions to the case but I wanted to contribute if it's open.

shutter control through external pins?

Hi,
I have one of your tcam rev4 boards and it works amazingly well, thank you so much for putting this together. I am interested in a set up where the shutter is a bit separated from the housing, and this end up disconnecting the 2 pins of the shutter from the copper traces on the housing. I can easily solder wires to the shutter pins, and I'm wondering if the signal that controls the shutter to close is accessible on any of the pins that you have made available on the board. I see from the spec sheet that I_DDIO is a 310 mA current that is responsible for closing the shutter, but I can't tell what the housing traces connect to.

Do any of the SLAVE IF pins on the board go high during FFC? Any advice you have about what signal on the board could be used to externally connect to the shutter (rather than rely on the two copper traces on the camera housing) would be much appreciated!

Best,
Leo

Connect external antenna on tCam-Mini

Dear Dan,
I have bought the tCam-Mini Rev 2 board along with a Lepton 3.5 camera. My model is with a built-in antenna.
I would like to connect an external antenna to increase the range of the wifi connection but I am not sure this is possible with my version of the ESP32 (in the BOM there are 2 different references for built-in or external antenna).
Is it possible to connect an external antenna with my model ?
Which connector reference must I choose and how do I connect it to the board ?
Kind regards.
Gilles

ESP32 programming error

Why this error?

UnicodeEncodeError: 'gbk' codec can't encode character u'\xf5' in position 13: i
llegal multibyte sequence

error

[FR] tCam + tCam-mini merge

Hey dan, im pretty sure this was asked before somewhere, but anyway.

First, the tCam mini is a really nice project, and probably the only way to make the lepton 3.5 usable. So i don't really understand why there aren't any other (halfway actual) projects about this camera.
However at this point, thank you very much for all the effort you do!

Now the main point, that i don't 100% understand...
Somehow tCam and tCam mini are 2 separate projects, with different hardware etc.... (At least from what i see)

Wouldn't it make more sense to use always tCam mini as the "carrier board" for the lepton 3.5 and add to it an wired interface that will allow it to connect simply to an raspberry?
I know the usb serial interface is probably not fast enough, so you need to find only a solution for that.
But this would allow it, to make everything much simpler, as the "full" tCam will become only a set of:
Rpi4 + desktop app
tCam-mini
Some sort of battery management pcb

And if you have a full tCam "set", it will still allow for a wifi access, because of tCam-mini. (Or if there isn't space on the esp, the raspberry could make an hotspot/nginx server either...)

And especially as the most interesting part of this is, this would allow every user to start with a tCam-mini and upgrade it later with almost no effort to a full tCam 🙈

Cheers ✌️

Quick explanation of I2C port on tCam-Mini

Hi Dan, I'm very thankful for your project and I bought a batch of the tCam-Mini PCB's from GroupGets. Thanks

I'm looking forward to digging into the hardware design and software components but I'm a little too busy and need a quick(er) answer if you don't mind.

I would like to integrate/communicate with a Lepton 3.5 from another SBC which may not have an OTG USB port and so trying to figure out how I will be able to get access radiometry info. I see an I2C interface and was wondering what's accessible from that I/F?

I'm hoping to be able to query temperatures across the 2D pixels array from another ESP32, if not the onboard ESP32. Any thoughts/suggestions?

Again, great job and thanks

Web app stalled at "Application is ready"

Hello,

I recently bought a tCam mini rev 4 and am trying it with a lepton 3.5. I'm trying to run the web app on a 64bit MacBook pro running 10.15.7

I can start the app using default settings "./tcam_web", and the terminal shows:
tcam_web version 1.0.2
Application is ready

but the next lines showing that it is trying to connect fail to ever appear. Also there is no json file created

I am connected by wifi to the board address, and I can tell what the IP address is of the board. When I go to that IP address in chrome the skeleton of the app is loaded, but there are no cameras detected, and the console.log of chrome shows the following error:

"GET http://...:9000/icons/site.webmanifest??v=d3572d86c30797d3b47b301274a80207 404 NOT FOUND"

Any ideas as to what i'm doing wrong?

Troubles in teensy3 code

Hi @danjulio ,

I have some troubles in your teensy3 code. I tried to verify lep_test5 and had errors
lep_test5:265: error: 'IRQ_PORTA' was not declared in this scope SPI.notUsingInterrupt(IRQ_PORTA);
controls:85: error: 'INTERNAL' was not declared in this scope analogReference(INTERNAL);
I couldn't find IRQ_PORTA and INTERNAL variables was declared or have instruction about them. Could you solve it pls. Thank you!

tCam-Mini maximum Wifi password length should be 64, not 32

Wifi specs allow for a maximum password length of 63 characters (or a 64-character hex PSK), but the tCam-Mini ps_utilities.h file sets a limit of 32 characters. The tCam Console app (MacOS, maybe others) appears to be limiting the length to 32 characters as well.

#define PS_PW_MAX_LEN 32

Change default palette in the Lepton Module

Hi Dan,

just a question not directly for your program.
Do you know how it is possible to change the defaul palette in the Lepton Module. Maybe with your Software and Hardware?

My problem is that if i use the module over USB in the Purethermal board for example VLC only display the Video in RAINBOWS Table and i want IRON.

How can i change the default.

Thanks a lot for some help.

BR Stefan

Esp32

Hi Dan,

I hope you are doing well.

I have an application i am currently developing, i m about to buy this amazing module you have designed. I would like to be able to stream short videos of 5 seconds, and also take pictures with the thermal camera, as it will be used in a condition monitoring application.

My idea is to use another ESP32 to connect to the tcam module wifi, to access the data and send it to the server via another lte module. I saw you mentioned that this module can only work with the desktop application, does it mean i cannot access to the data even wih the ESP32 by sending the json commands to it?

Do you have a SPI example code for this tcam module?

Kind regards,
Gael

Feature Request: RTSP tCam-mini

Dear Dan,
I recently played with the ESP-CAM module with rtsp server (even add some code for OV7725 support). However I only tweak the code within plateform.io, and I don't feel I'll be able to add rtsp server feature to your project.
Do you think it is something doable ? It would be very nice to be able to link the tCam-mini to any CCTV surveillance station, VLC player and so forth, as we can do with the ESP-CAM.
Thanks a lot for your hard work, the tCam-mini module and the apps are amazing !
Pierre

-273 C with lepton 3

im useing a lepton 3 on the t cam mini rev2, i can get a good thermal image but the S & M1, 4 temperatures gives me a fixed -273 Celcius valeu,
Is this because the software is made for the lepton 3,5 ?
If so will be there a lepton 3 FW choice or does this need a hardware mode to ?

ESP 32 and Flir Lepton 3.5: OEM GPIO VSync Phase Delay

Hi,

at first, thanks for all the support!
I am working on a project using ESP 32 and Flir Lepton 3.5. I am facing the problem, that there is no way to achieve negative phase delay. positive values 0 - 3 are working fine, but the negative ones or not accepted. Surely I am missing somthing, but what ?

Thanks a lot

Jonas

tCam-Mini with Serial Output

Hi, I am excited about my tCam-Mini, I am in the process of building a small Pan Tilt Mount.

Is it possible to add something to the firmware to control the serial interface?

This way a small Arduino could control the Pan Tilt Mount using serial commands and I don't need an extra cable or wifi connection.

Four buttons could send serial commands for up, down, left and right to the Arduino would also be great. Is something like this planned or even feasible? That would make the tCam-Mini even more exciting.

The Arduino code be very simple to implement.

Thank you and many greetings

Example for python with temperature and stream

Hi,

can you please give a python example how to decode the temperatures from the radiometric string?

Maybe you can also give an example how to show the stream with python?

Thanks a lot.

bg kami

Mobile App

Hello Will there be an Android app for tCam-mini in the future? The desktop app works flawlessly, but a mobile app would be much better. I use tCam-mini on a drone for fawn tracking. Thanks for the great development.

Lepton 3.5 w/ Teensy 3.2 and VSYNC enable

Hi,

I have been thinking to connect lepton 3.5 to Teensy 3.2 and use these libraries. Before that i had few questions as follows:

  1. Has VSYNC been enabled successfully and use it in your test programs to get the synchronization among packets.
  2. What's the max frame rate you got?

If you could give me any valuable info on vsync, frame rate , sync and so on, I'd appreciate it?

Thanks,
Akshay

Questions about the wifi mode of tCam-Mini

Hi Dan, I have purchased a tCam-mini Rev 4 with an external antenna in order to get the maximal range for a drone application in a student project. I use it with a Lepton 3.5. We have reached 120m but we wish to increase it as much as possible (500 m is the objective). So I have some questions about the design of the tCam-Mini:

  1. What is the data rate in transmission with a Lepton 3.5 (theory gives me 2.8 Mbps )
    a) in video mode
    b) during image transmission
  2. What is the wifi mode (802.11 b, g, n) used in these transmissions and what is the nominal RF power ?
    Thank you for developping nice products.
    Best regards
    Gilles Brazzini

how to use

Hi,
I got my Tcam.

I use my phone to connect to it via wifi.

I got this on the console log (connected to PC).

19:34:13.396 -> �[0;32mI (7031) lep_task: Could not get lepton image�[0m
19:35:21.123 -> I (74741) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
19:35:21.123 -> I (74741) wifi:station: ee:94:b0:93:ae:b7 join, AID=1, bgn, 20
19:35:21.123 -> �[0;32mI (74741) wifi_utilities: station:ee:94:b0:93:ae:b7 join, AID=1�[0m
19:35:22.885 -> �[0;32mI (76521) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2�[0m
19:37:15.146 -> �[0;32mI (188781) lep_task: Could not get lepton image�[0m
19:37:15.656 -> �[0;32mI (189301) lep_task: Could not get lepton image�[0m
19:37:16.210 -> �[0;32mI (189831) lep_task: Could not get lepton image�[0m

On the phone should I use browser to connect to 192.168.4.2?

idf.build error

Hello Thank you for sharing a great project.

I ran a build with the idf.build command, but I got a compile error, so I'm inquiring.

../components/cmd/json_utilities.h:36:10: fatal error: ds3232.h: No such file or directory
#include "ds3232.h"
^~~~~~~~~~
compilation terminated.
[7/24] cd /home/jsh/working/lepton/ESP32/tCam-Mini/firmware/build/esp-idf/part...*****************************************************************************
Partition table binary generated. Contents:


Espressif ESP32 Partition Table

Name, Type, SubType, Offset, Size, Flags

nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,


[7/24] Building C object esp-idf/lepton/CMakeFiles/__idf_lepton.dir/cci.c.obj
FAILED: /root/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -Iconfig -I../components/lepton -I../main -I/root/esp/esp-idf/components/newlib/platform_include -I/root/esp/esp-idf/components/freertos/include -I/root/esp/esp-idf/components/heap/include -I/root/esp/esp-idf/components/log/include -I/root/esp/esp-idf/components/soc/esp32/include -I/root/esp/esp-idf/components/soc/include -I/root/esp/esp-idf/components/esp_rom/include -I/root/esp/esp-idf/components/esp_common/include -I/root/esp/esp-idf/components/xtensa/include -I/root/esp/esp-idf/components/xtensa/esp32/include -I/root/esp/esp-idf/components/esp32/include -I/root/esp/esp-idf/components/driver/include -I/root/esp/esp-idf/components/esp_ringbuf/include -I/root/esp/esp-idf/components/esp_event/include -I/root/esp/esp-idf/components/tcpip_adapter/include -I/root/esp/esp-idf/components/lwip/include/apps -I/root/esp/esp-idf/components/lwip/include/apps/sntp -I/root/esp/esp-idf/components/lwip/lwip/src/include -I/root/esp/esp-idf/components/lwip/port/esp32/include -I/root/esp/esp-idf/components/lwip/port/esp32/include/arch -I/root/esp/esp-idf/components/vfs/include -I/root/esp/esp-idf/components/esp_wifi/include -I/root/esp/esp-idf/components/esp_wifi/esp32/include -I/root/esp/esp-idf/components/esp_eth/include -I/root/esp/esp-idf/components/efuse/include -I/root/esp/esp-idf/components/efuse/esp32/include -I/root/esp/esp-idf/components/app_trace/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Os -freorder-blocks -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER="v4.0.2" -DGCC_NOT_5_2_0 -DESP_PLATFORM -MD -MT esp-idf/lepton/CMakeFiles/__idf_lepton.dir/cci.c.obj -MF esp-idf/lepton/CMakeFiles/__idf_lepton.dir/cci.c.obj.d -o esp-idf/lepton/CMakeFiles/__idf_lepton.dir/cci.c.obj -c ../components/lepton/cci.c
../components/lepton/cci.c:25:10: fatal error: i2c.h: No such file or directory
#include "i2c.h"
^~~~~~~
compilation terminated.
[7/24] Building C object esp-idf/lepton/CMakeFiles/__idf_lepton.dir/vospi.c.obj
FAILED: /root/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -Iconfig -I../components/lepton -I../main -I/root/esp/esp-idf/components/newlib/platform_include -I/root/esp/esp-idf/components/freertos/include -I/root/esp/esp-idf/components/heap/include -I/root/esp/esp-idf/components/log/include -I/root/esp/esp-idf/components/soc/esp32/include -I/root/esp/esp-idf/components/soc/include -I/root/esp/esp-idf/components/esp_rom/include -I/root/esp/esp-idf/components/esp_common/include -I/root/esp/esp-idf/components/xtensa/include -I/root/esp/esp-idf/components/xtensa/esp32/include -I/root/esp/esp-idf/components/esp32/include -I/root/esp/esp-idf/components/driver/include -I/root/esp/esp-idf/components/esp_ringbuf/include -I/root/esp/esp-idf/components/esp_event/include -I/root/esp/esp-idf/components/tcpip_adapter/include -I/root/esp/esp-idf/components/lwip/include/apps -I/root/esp/esp-idf/components/lwip/include/apps/sntp -I/root/esp/esp-idf/components/lwip/lwip/src/include -I/root/esp/esp-idf/components/lwip/port/esp32/include -I/root/esp/esp-idf/components/lwip/port/esp32/include/arch -I/root/esp/esp-idf/components/vfs/include -I/root/esp/esp-idf/components/esp_wifi/include -I/root/esp/esp-idf/components/esp_wifi/esp32/include -I/root/esp/esp-idf/components/esp_eth/include -I/root/esp/esp-idf/components/efuse/include -I/root/esp/esp-idf/components/efuse/esp32/include -I/root/esp/esp-idf/components/app_trace/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Os -freorder-blocks -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER="v4.0.2" -DGCC_NOT_5_2_0 -DESP_PLATFORM -MD -MT esp-idf/lepton/CMakeFiles/__idf_lepton.dir/vospi.c.obj -MF esp-idf/lepton/CMakeFiles/__idf_lepton.dir/vospi.c.obj.d -o esp-idf/lepton/CMakeFiles/__idf_lepton.dir/vospi.c.obj -c ../components/lepton/vospi.c
In file included from ../components/lepton/vospi.c:38:
../components/lepton/vospi.h:31:10: fatal error: sys_utilities.h: No such file or directory
#include "sys_utilities.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

How can I fix it?

New FLIR LEPTON® FS

Hi,

I wonder the new FLIR LEPTON® FS is compatible with the tCam-Mini.

[EDITED ... SOLVED]
Another question is that what are differences between radiometric and non-radiometric cameras, in terms of data output from the camera module. It seems the LEPTON FS' radiometric data is not as accurate as previous models, making it more affordable.

All the best,

Typo

There is a typo:

As of Nov 6 2022, the ESP32 designs have been moved to their own respository [tCam](https://www.github.com/danjulio/tCam) to make it easier for most people who are only interested in those files. Files here will no longer be updated.

respository sould be repository

Fledgling R package

Just dropping a note to, first, say many thanks for the tCam and this repo!

I've got a fledgling R package going for the tCam-Mini over here: https://github.com/hrbrmstr/tcam and will be adding more to it and likely writing a Go, Rust, and/or Swift command-line tool for the device as well.

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.