Iot

How to use a IR photodiode on an Arduino to meassure IR light

#blog #howto #arduino #arduino nano #photodiode #infrared #electronics #programming #iot #microcontroller

Most tutorials I’ve found so far are about 3-pin photodiodes. These are meant to recieve digital IR signals from TV remotes or similar devices. The 2-pin diodes can be used to simply meassure the available IR light. So you could use this to build a distance sensor, if you add a IR LED emitter and then meassure the reflected light, or to meassure the IR light emitted by a natural or artificial light source.

 

Arduino Nano IoT accelerometer data to pitch and roll

#blog #howto #arduino #arduino nano #accelerometer #c++ #electronics #programming #iot #microcontroller

The Arduino Nano 33 IoT comes with a built-in 3-axis acceleromteter. This sensor meassures values for x, y and z acceleration between -1 and 1. If we want to know the actual position in which the sensor is, we need to know it’s rotation on two axis, pitch and roll, in dregress. This two angles could be used then later on to control two servos which rotate an object exactly the same way the sensor is rotated.

 

RaspbeeryPi Pico Temperature Light and Logger

#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller

On a rainy sunday afternoon I found out that the RaspbeeryPi Pico fits perfectly into a 35mm film box if you cut a little hole for the USB port into the lid. Since my box was a semi-transparent white box, I decided to add some LEDs and build a little temperature sensor, that indicates the current temperature range using either a blue, green, orange or red LED. Build I connected the power pin (long side) of each LED to a GPIO port (green = Pin4, blue = Pin5, orange = Pin3, red = Pin2), of course with a 220 ohm resistor in between, and all the short sides to GND.

 

How to develop on a RaspberryPi Pico using Micropython

#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller

A few days ago I got two brand new RaspberryPi Pico Boards and so it is time to build something using this new toy. So let’s talk about what it actually is, how to setup a MicroPython development environment and also build a simple example project to make sure everything works as expected. This one is not like the others I won’t go to much into the specs of this board, since you can read them for yourself here, instead I will focus here on two specific things that set’s this Pi appart from others like it.