Skip to content

Wireless data logger for temperature, light and sound level using 2 BBC Micro:bit units and a Raspberry PI

License

Notifications You must be signed in to change notification settings

lakeonwan/microbit-telemetry

Repository files navigation

microbit-telemetry

This project uses two BBC micro:bits and one computer

🌍 world <----sense---- Micro:bit -transmit-> Micro:bit -transmit-> Raspberry PI -log-> 📁
         🌡 temperature     v2      (radio)              (serial)         
         💡    light
         🎤    sound

micro:bit v2 - sensor and transmitter (radio)

microbit_sense_and_send.py

When the application is started, the micro:bit screen shows the letter 'S'.

After that it periodically senses:

  • temperature
  • light level
  • sound level using micro:bit v2 build-in microphone

When pressing button A, the micro:bit led screen outputs sensor data

  • The 1st led brightness corresponds with temperature
  • The 2nd led brightness corresponds with light level
  • The 3rd led brightness corresponds with sound level

Pressing button A again disables outputting to the led screen

micro:bit - receiver (radio) and transmitter (serial)

microbit_radio_receive_and_send_serial.py

When the application is started, the micro:bit screen shows the letter 'R'.

After that it periodically checks for incoming data that is sent by the sensor micro:bit v2. When data is received, a led on the led screen is turned on briefly

Raspberry Pi - receiver (serial) and logger

hub_serial_read_and_process.py

This application receives its telemetry data over the serial port and logs it in a file called telemetry.log

The serial port settings are:

setting value
port /dev/ttyACM0
baudrate 115200

Releases

No releases published

Packages

No packages published

Languages