paxagents.blogg.se

Lepton 2.5 raspberry pi
Lepton 2.5 raspberry pi













I only have 2 handlers for the web server. The rest of the main function is just setting up the web server. The startThermalCam function is simple, it just grabs the temperature readings into the grid and then wait for a period of time as defined in refresh. If the user wants to capture from the sensor, I initialize the amg and then start a goroutine on startThermalCam. I start by checking if the user wants to use the mock data or the actual data captured from the sensor. I used this when I was developing the software because it was easier to test. newSize is the width of the final image that’s shown on the browser.įinally, the mock parameter is used to determine if we are actually capturing from the sensor or using mock data. minTemp and maxTemp are the minimum and maximum temperature ranges we can want to show on the image. refresh is the refresh rate to capture and display the images.

lepton 2.5 raspberry pi

I capture a few parameters from the user when I start the software from the command line. grid is an array of 64 floating point temperature readings that is read from the AMG8833 8x8 sensor. This variable is declared here but populated in the heatmap.go file. The colors slice is a list of all the colors used in the image. I use frame to store the resized image captured from the sensor, which is then used by the web server to serve out to the web page. amg is the interface to the sensor using the amg8833 library. This however is a laborious and time-consuming method, and as people head to their offices this comes a bottleneck that ironically causes people to gather. Checking temperature is mostly done through non-contact thermometers by security guards. In a management meeting recently, we were discussing about how to deal with the flow of people (both employees and visitors) into our various offices around the island. Also, when entering almost every office building, everyone’s body temperature is checked and if they have fever, they are not allowed in and instead advised to see a doctor.

lepton 2.5 raspberry pi

Most larger-scale events like conferences have been postponed to avoid gathering of people, which increases the risk of COVID-19 spreading.įor business continuity, my team has been segregated to Team A and Team B, they take turns to use the office on alternate weeks, and neither the twain shall meet. Non-essential meetings are cancelled (which is a good thing) and other meetings are mostly done through video or audio conferencing.

lepton 2.5 raspberry pi lepton 2.5 raspberry pi

I no longer commute to work every day and try to work from home as much as possible. The spread of the COVID-19 virus has gripped many parts of the world (especially in Asia) in the past couple of months and has affected many aspects of a lot of people’s lives, including mine. Create a simple thermal camera with a low-cost sensor and Raspberry Pi 4 using Go















Lepton 2.5 raspberry pi