How to build a weather station (II): Using electronics.cat boards.

One of the biggests issues of the weather station prototype was the physical connection between Raspberry Pi and Arduino, because I needed to use one annoying USB cable as you can see in this picture:

Weather station cartonboard prototype (connectors side)

Weather station cartonboard prototype (connectors side)

To solve this problem, I tried to connect both devices via TX/RX pins and using the /dev/ttyAMA0 instead /dev/ttyACM0 or /dev/ttyUSB0 , but the main issue was the Raspberry Pi / Arduino different pinout voltage, so I used the great electronics.cat boards thanks to @jordibinefa:

nano-eCat

nano-eCat

http://www.electronics.cat/php/common/index.php?lang=es&page=101

Raspberry Pi Hat from electronics.cat

Raspberry Pi Hat from electronics.cat

http://www.electronics.cat/php/common/index.php?lang=es&page=508

New setlist of components:

 

  • A cartonboard of small-medium size
  • Raspberry Pi model B or B+
  • Arduino Micro Nano e-cat board
  • 1 Protoboard
  • NEW: Raspberry Pi Hat from electronics.cat
  • 3 180º Servos
  • 1 Photoresistor
  • 1 10k resistor
  • 1 0.1-10uF capacitor
  • 1 DHT22 sensor
  • 1 USB – micro USB cable
  • 1 micro USB connector
  • 1 Wifi Dongle (if you want to send the data online)
  • 1 Power Supply
  • A lot of Some wires and jumpers
  • NEW: 2 10 wires bus cable (sensors and servos data)
  • NEW: 1 8 wires bus cable (power and TX/RX)

The code is a little bit different because of some adaptations to new boards:

https://github.com/ferriman/SSandSP/blob/master/raspberrypi/weatherstation-ecat.py

General view of the project final result:

Analog wather station using electronics.cat boards

Analog wather station using electronics.cat boards

 

Posted in Arduino, DIY, Electronics, In progress, Programming, Python, Raspberry Pi Tagged with: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*