Electronics


Prototype with arduino, display and sensors
Prototype with arduino, display and sensors

My first experiment is Arduino based. I’ve bought most of the hardware at dx.com. I know that there are cheaper alternatives, i.e aliexpress.com. Also, within dx.com there are stuff that are more or less identical, but with different prices. Do some searches. Some are also referred to in the Display section of this blog.

There is no reason why arduino is the best choice for my application. It just happened to be the one I started with. And it’s easy to use.

This version does not have internet connection nor forecast. Only sensore readout, clock, and moon phase. It was my introduction to Arduino, LCDs and sensors. But it works 😉

The prototype consists of:

Processor
The arduino is a quick way into programming microprocessors and external devices.The weather station prototype currently uses ATMEGA1280 based board.

IMG_8472

Note the wires coming out at the right hand side. These are power and I2C connected to the sensors. The green wire is SDA(pin 20), the white wire is CSL(pin 21). 5v is taken from one of the upper two digital pins and gnd taken from one of the lower digital pins show in the picture (note that in the prototype the corresponding pins on the LCD Mega shield had to be cut in order to make room for the wire. You may want to wire differently (or solder directly). The SDA/CSL goes to the corresponding pins on the sensors that are connected in parallel. The I2C address used by the sensors is hardcoded into the prototype software.

Its quite large. In the final weather station I hope to use something smaller based on my own design or maybe a Arduino Nano Pro.  The good thing about the 1280 is the large amount of flash. If I can rely on internet connection, I can remove a lot of the embedded software  and hopefully get away with something smaller with less memory footprint.

Display

To get a quick prototype up’n running I chose to buy a TFT LCD Mega Shield to bridge the gap between Arduino and the display. It fixes the pin layout and voltage differences between the LCD (3.3v) and the Arduino (5v). It also contains a SD card reader which I don’t use (could be useful for storing images that are currently occupying the arduino flash!)

IMG_8475

As seen below,  the prototype has 3 layers. A total of >30mm is way too thick . In addition, the sensors are of-board. I really want a slim device that fits nicely on a wall or something. Preferably all on one single board.

IMG_8486

Real time clock & Pressure sensor

The prototype has two of-board sensors as show on the picture.

IMG_8464

The RTC works perfectly with the Arduino Time library. I don’t need the extra memory, but it’s on the module. The BMP085 works with software from Adafruit (ref. #include in the prototype software).

16 thoughts on “Electronics

    1. Have never tested with 2560, but I thought they were pretty identical from a software point of view (except amount of memory). Also note that the software does not compile in the later revisions of the Arduino IDE (after they changed the compiler).

      Like

      1. so, since the software does not compile in the later revisions, the 2560 would be of no use for this project?, sorry for the inexperience, im just starting to learn about the arduino, im an electronics technician, and by the way, thank you for the help!

        Like

  1. I found the design of your project beautiful; have not you updated it for, for example, reading the data from NTP on the internet? Thank you

    Like

  2. For others interested in this project, note that the link to the display I used is no longer valid. Note also that the support for products from ElecFreak have been removed from the latest UTFT library. I know there are other displays out there now that can be connected directly to the arduino mega without the interface boards.

    Like

  3. Were you able to find your Weatherstation_2 or Weatherstation_3 code of preference? I’ve tried it, first in the Arduino 1.8.8 IDE and then in IDE 1.5 but are showing some errors.
    If you can, please do some testing with the current IDE of Arduino or even the original IDE of the code, I would be very grateful because, I really liked the design of this Station with Clock and Date; It was very beautiful;
    my email: meuviolino@hotmail.com
    My thanks in advance

    Like

  4. Hi;
    I opened your sketch with the Arduino IDE 1.8.8 (penultimate version), selected the Arduino Mega or 2560 board in the Tools menu and renamed all prog_uint16_t by const uint16_t, which is required by the new compiler and at least compiling the sketch.
    I did not load because I do not have the Arduino Mega 2560 card, I will buy it through ebay, then I will test the code.

    Like

  5. I found the design of your watch to be very beautiful and would like to know if it is possible to use it with esp8266 Nodemcu (not WiFi) because it does not need Level Shifter for the logic pins; What should be changed or added to the sketch? Thank you

    Like

  6. I connected a BMP180 GY68; Is it the same with BMP085? Why are you showing this message on the screen: Could not find a valid BMP085 pressure sensor.
    Another thing: both sensors use the same I2C wiring; SDA and SCL?
    I am using an Arduino Mega Pro Mini.
    Thank you

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s