Total Pageviews

Monday, June 13, 2016

Arduino on VGA display


   I search for info about how can use Arduino as VGA tester or video card.
   First credible article is Simple VGA/Video adapter who can use 8-bit AVR MCU like ATmega8, 328, etc:
   Article is writted by Maxx Ibragmov and a their montage is:
   On TV, resolution is 20 rows with 38 character each:
and on VGA monotor, resolution is 20 rows with 20 characters each:
  I wanted fast result and try other adapter montage (without diodes):

   First test was with info from article Arduino generated VGA (color) signal - Complete!
who use this schematic:
   I use Arduino IDE 1.0.3 and my test image is:

NOTE (27.09.2017): Now site is "down", so you can download usefull files from https://github.com/LaboratorioDeGaragem/VGA-com-Arduino !

   I try to reproduce a more complex image like in article Arduino generated VGA (color) signal - Complete! (other site, same author):
but image is not clean.. and I jump to other material find in article Basic Arduino VGA:
   I use same Arduino IDE 1.0.3, but my test image is not same in original article:
   Next step was to reproduce expermiments from Nick Gammon with VGA
   First is a black/white VGA video card for 30 rows with 20 alphanumerical characters each. Schematic is simple:
   This VGA video card use i2c protocol for comunicate with other Arduino board, but results are very poor on transmision data (author say: unfortunately incoming data (can) make  the display "glitch"). I made a movie (explanations are in Romanian language, but you may can understund what I want to say):

   Next test was with moving colour test image on VGA display, using this schematic:
and a image is:
   I made a movie with image on VGA (saame, with explanations are in Romanian language):
   Next step was to test VGAX library writted by Sandro Maffioda after Nick Gammon info.. on display resolution is 120x60px with 4 colours.
   Schematic is simple:
   You can made some combination:
1) red & green made: black, red, green & yellow:
2) red & blue made: black, red, blue, purple:

3) green & blue made: black, green, blue, cyan:
4) red & cyan (green + blue) made: black, red, cyan, white:
5) blue & yellow (red + green) made: black, yellow, blue, white:

6) green & purple (red + blue) made: black, green, purple, white:
   I made some movies for understund more easy:



   

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) !