Total Pageviews

Tuesday, May 31, 2016

Arduino alarm system with delay (2)


   In this article I put a keyboard for activate and deactivate a alarms system with Arduino board and PIR sensor.
   My schematic is:
and sketch is alarm_system_2a.ino !
   My alarm work in next steps:
- after power on, alarm is OFF, blue led is on
- after you introduce the code (1234* or better #1234* because # clear buffer for old activity) system go to stand-by state, green led is blinking;
- after 20 seconds, system is in waitting (watching) mode, green led is permanent on;
- if PIR sensor detect movement, system begin to countdown, red led flash;
- if you indroduce code, system will be off (blue led in on)
- after 10 seconds (if you not enter the code) buzzer is on (led onboard is on), red led is permanet on
- after 10 seconds, system go to waitting mode, if is movement again, countdown and after buzzer is on, etc;
   You can see 2 movies with states of this alarm system:

Arduino alarm system with delay


   At polish site named http://majsterkowo.pl/ I found an article about alarm system using a Arduino board and PIR sensor.
   Base schematic is 
and sketch for alarm is at page 3 in article.
   After I translate name of variables and study original sketch, I made some changes:
Note: I use internal led from Arduino board instead buzzer.
   
   My sketch is alarm_system_1a.ino and I have next states:
- switch is open, blue led is on, alarm is deactivate;
- switch is close (D2 at GND), green led is blinking, alarm is in stand-by
- after 20 seconds, green led in on, alarm is waitting
- if PIR sensor detect a movement, red led is blinking, alarm countdown 
- after 10 seconds, if switch is still close, red led is on, buzzer is active
- after 10 seconds, alarm return to waitting, if is movement, alarm countdown and repeat the cycle
- if switch is open, system in off.
   You can see a movie named Arduino system alarm with delay with all states:

Tuesday, April 12, 2016

4-digit led display with TM1637 and Arduino

   A good and cheap display is 0.36" (9,14mm) led display drived by TM1637:
   Test schematic is very simple:
   I made few changes for can display special characters:
 after that, I put DHT11 sensor:
   Sketch for this weather station (temperature and humidity) is put at my github channel in TM1637 library !
   I made a movie named Arduino, TM1637 display & DHT11 sensor

   Original article is in roumanian language and can be find at http://nicuflorica.blogspot.ro/2016/04/afisaj-cu-4-cifre-controlate-de-tm1637.html !

Friday, January 15, 2016

NRF24L01 radio module and Arduino (radiolink joystick to servos)

   In article RadioLink-Joystick-To-Servos are use NRF24L01 radio modules with Arduino Uno boards, one joystick, 2 servos.
   First module is made with:
- one NRF24L01 module 
- one Arduine Uno board 
- one joystick 
and transmit position of joystick (X & Y position) for second module made with:
- one NRF24L01 module 
- one Arduine Uno board 
- two servos.
   Servos made motion depending joystick position.
   Sketch for transmiter and receiver use RadioHead library (download).
   I made schematic according sketches (with small changes):
- transmiter:
- receiver:
and I made some changes in sketches for control a led (or laser) when push momentary button from joystick.
   On https://github.com/tehniq3/ you can find sketchs for:
- transmiter: nrf24l01_tx_2servo_sw.ino
- receiver: nrf24l01_rx_2servo_sw.ino
   I made some pics in different position of joystick and 2 servos:
- in stand-by:
- when push momentary button:
- joystick at left:
- joystick at right:
- joystick in up direction:
- joystick in down direction:
   I made a movie named radiolink joystick to servos using NRF24L01 & Arduino when explain who work this ansamble: transmiter-receiver:

Tuesday, September 22, 2015

GPRS module with M590 for SMS projects (part 3)

   In 1st part I present you few data about GPRS module with M590 chip and how send SMS from them. In 2rd part I send SMS from phone and SMS is received by GPRS module with M590, also with Arduino Mega board cand control 4 leds, depend text from SMS.
   M590 chip from Neoway is an old, industrial and... recovered (second hand) chip for GPRS/GPS as SIM900. Is enough for our tests with Arduino...
   Main reason for i use Arduino Mega board instead Arduino Uno is number of harware serial port... M590 chip has defauld speed set at 115200bps, too much for SerialSofware (see arduino.cc - SoftwareSerial). Theoretical, this library work fine at this speed but all my Arduino board (original and clone) not work good.
   So, my solution is to connect at Arduino Mega board and decrease speed with AT command: AT+IPR=9600. First upload M590_mega_serialtest2.ino and open serial monitor at 115200bps:
after that, I reopen serial monitor at 9600bps speed:
   Now, I chamge the schematic and use Arduino Uno board (in my case is a clone VISduinoUno):
and upload M590_softwareserial.ino and  send few AT commands:
   I  made a new schematic:
and upload M590_tronixstuff_4led_control.ver1m1.ino.
   I send SMS from phone for have all 4 leds lit (on):
 and GPRS with M590 module received SMS and Arduino decode and control leds:
    I send a new SMS:
after, I send a new SMS:
   I made few movie:
- SMS control 4 leds using M590 GPRS module and Arduino
- SMS control 4 leds using M590 GPRS module and Arduino (2)
- SMS control 4 leds using M590 GPRS module and Arduino (3)
   If you haven't Arduino Mega, you can use USB-FTDI interface with 3.3V selector and made schematic:
 and use Putty software (like in 1st part) and change speed from 115200bps in 9600bps for work with Arduino Uno board (or clones).

 NOTE: External power supply is +4,6V not 4,2V (power supply with voltmeter show less with 0,3-0,4V) !

Monday, September 21, 2015

GPRS module with M590 for SMS projects (part 2)

   In previous article I present you a GPRS kit with M590 chip on-board and I send SMS when push an button. Now, I will received a SMS and interpret the text and comand few leds as in article named Tutorial – Arduino and SIM900 GSM Modules from tronixstuff.com.
   M590 chip is similar with SIM900, just haven't voice part... 
   First, I upload M590_Mega_serialmonitor.ino sketch and I send from phone a SMS to GPRS module:
   I use this schematic for tests:
   I upload M590_tronixstuff_sms_control_Arduino_v1m0.ino sketch and send #a1b0c1d0 text in SMS from phone:
(aprins = on, stins = off)
and leds 1 & 3 are on, 2 & 4 are off:
   I send #a0b1c0d1 SMS:
(aprins = on, stins = off)
and leds 1 & 3 are off, 2 & 4 are on:
   I send a new SMS, for all leds lit (all on):
and all led are lit.
   I made a movie named SMS control 4 leds using M590 GPRS module and Arduino with sending sms from phone and received from M590 GPRS module, interpret datas and comand 4 leds:

 NOTE: External power supply is +4,6V not 4,2V (power supply with voltmeter show less with 0,3-0,4V) !