Tag: arduino

HC-SR04 Ping distance sensor

Working on a small mockup that should read sensors, [do some stuff here] and send it to clients website/server..

Using a sensor like the HC-SRo4 Ping distanse sensor to send a signal to the RasBotPi when someone walks inside the range is a nice idea for the moment. Although for the project I am working on, this is not the best idea 🙂

But Arduino and a breadboard gives you the power to fool arround and see if it fits your needs.

On twitter I found out about this guy: Hazim Bitar.
His website is http://www.techbitar.com and you can follow him on twitter too.  He created an app that reads Arduino sensors using bluetooth. Got me thinking about the final project and how we can overcome the distance without the needs of cable (or to setup a complete wifi network) on the “moving” location.

2013-11-14 14.38.04-1

HC-SR04 on breadboard

Anyway, this sensor came from china (dx.com). There are lots of sketches to find if you do a  google. The one I post here works too. Dunno exact where I found it..



Gertboard ATmega IO vs. Arduino Pins

The printing on the Gertboard indicated the port and pin numbers internal to the Atmega microcontroller…

However this is normally hidden from the user by the Arduino’s “wiring” library and rather than refer to (e.g.) Port B, bit 5, you’d normally refer to “pin 15″.

The mapping is fairly straightforward, but to help you connect wires to pins on the Gertboard, here is a handy table to let you see what the connections are:

See source:


Setup Arduino IDE serial monitor on the Raspberry Pi

The Arduino IDE does not understand names such as /dev/ttyAMA0.

One suggestion is to

and restart the Arduino IDE.

This creates an alias to /dev/ttyAMA0 which the IDE may understand.