Difference between revisions of "Arduino"

From no name for this wiki
Jump to: navigation, search
(connecting blue tooth modem to arduino)
(Bluetooth 220 V voltage switch)
Line 4: Line 4:
 
Needed:
 
Needed:
 
* Arduino board
 
* Arduino board
* 5v relay for arduino
+
* 5v relay for arduino (http://www.play-zone.ch/de/2-kanal-relais-modul-karte.html)
 
* bluetooth modem (https://www.sparkfun.com/products/12577)
 
* bluetooth modem (https://www.sparkfun.com/products/12577)
 
* android sdk
 
* android sdk

Revision as of 11:46, 4 May 2014

Bluetooth 220 V voltage switch

Control a household lamp with your smartphone.

Needed:


connecting blue tooth modem to arduino

Important thing is that your modem supports 5v power. Many boards are built for 3v. Only four wires needed:

  • Connect grd on arduino to grd on modem
  • Connect 5v of arduio to vcc on modem
  • Connect arduino digital pin 2 to tx on modem
  • Connect arduino digital pin 3 to rx on modem

Do not use pins on arduino that have a tx and rx printed on them. They are used to communicate with your pc while connected by usb.

connecting relay to your arduino

This is straight forward too:

  • Connect grd on arduino to grd on relay module.
  • Connect 5v of arduino to vcc on relay module.
  • Connect digital pin 13 to Ch1 or In1 on relay module.
  • Connect digital pin 12 to Ch2 or In2 on relay module.
  • e.c.t.