Archive

Articles taggués ‘arduino’

Using Arduino as serial to usb converter

As some might know there are several FTDI chip based usb to serial converter breakout boards. Sparkfun produced several of them through time , and recently Adafruit launched a new product called ”FTDI friend”. Those are the well known ones. But if you have an Arduino board with usb connectivity ( like Duemilanove ) , you don’t need to buy any of those for basic usb to serial converting tasks. If you have a Seeeduino, you are luckier!

First some technical stuff. The Atmel chips inside the Arduino boards come with a special bootloader firmware. That allows user to program the chip without needing of any other ICSP , JTAG , etc.. programmers. That bootloader firmware uses hardware UART module of the chip. So you can program the chip with a standart RS232 cable.

Early versions of Arduino (i guess that one called Arduino Serial) used MAX232 level converter chip to match computer’s RS232 signals to TTL signal for loading new sketches(actually, firmwares). Later on, since RS232 ports started to dissapear from notebooks , they started to use FTDI chips to create serial port connection between computer and the chip. And here comes the story.

If we look at the schematic of Duemilanove, we will see that the RX and TX pins are connected to the FTDI chip (as we expected) and theese pins are pinned out at the Arduino board as pin 0 and pin 1 . That means we can use those pins for using the FTDI chip itself.

To do that, you don’t need to unplug the Atmel chip from its place. Before using your Arduino board as usb-serial converter you can upload that piece of code.
void setup()
{
pinMode(0,INPUT);
pinMode(1,INPUT);
}
void loop()
{

}
By doing that, you are guaranteed that Atmel chip wont interfere your communication between FTDI chip and other device.

Also, if you have a Arduino clon named Seeeduino ,like me, you can talk with your external devices both with 3.3V and 5V levels. It has ability to work both 3.3 volts and 5 volts.

Sparkfun sells 3v and 5v versions of FTDI breakout board seperately and FTDI Friend has ability to work at both levels but you need to make a little jumper soldering to change voltage levels. At Seeduino board, it is simple as changing a switch.

I hope it helps someone out there.

Categories: Geek Tags: , , ,

Faire sa console avec un Arduino

http://pragprog.com/magazines/2011-08/make-your-own-video-game-system

Categories: Geek Tags:

Tutorials Arduino

http://tronixstuff.wordpress.com/tutorials/

Categories: Geek Tags: ,

Quand l’Arduino se mêle à la photographie pour nous montrer l’invisible

Categories: Geek Tags: ,

Plafond LED

Je vais décrire dans cet article la réalisation d’un plafond LED représentant les étoiles des constellations du zodiaque ou n’importe quelle forme suivant votre imagination.
Le tout sera géré par un arduino mega et un petit soft maison.
Ce petit montage pourra être modifié pour y rajouter un ecran LCD (qui affichera le nom de la contellation en train d’etre éclairée), une recepteur IR afin de selectionner telle ou telle constellation, l’intensité lumineuse, etc …

Matériel nécessaire :
– 1 x Arduino Mega
– 12 x Transistors 2N2222
– Un fer à souder
– de l’etain
– du fil (du cable réseau fera l’affaire)
– diodes et resistances

Une évolution de ce projet pourrais etre une matrice de LED afin de pouvoir les controler indépendament
http://arduino.cc/blog/2010/06/07/wire-wrapping-an-led-matrix/
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1283958607/15
http://www.arduino.cc/en/Tutorial/ShiftOut
http://www.instructables.com/id/810-LED-Matrix-with-4017/

http://cast.ap.buffalo.edu/courses/f09/media_robotics/2009/12/galactic-geometries-revised/
http://www.instructables.com/id/Designing-a-Multi-Node-LED-PWM-Lamp/

3-Epoxyfibe-Stripboard-4-x6-Each2400Hole-Veroboard-PCB

Schémas pour la partie alimentation amplifiée : http://www.arduino.cc/playground/uploads/Learning/multiple_leds2.jpg

LED Matrix 8x8x8
http://www.instructables.com/id/Led-Cube-8x8x8/

8×8 LED Matrix Animations
http://www.instructables.com/id/8×8-LED-Matrix-Animations/

Matrix 2×2
http://wiki.mediazone.co.nz/A+Simple+2×2+LED+Matrix&structure=Electronics#A_Simple_2x2_LED_Matrix

http://www.tigoe.net/pcomp/code/category/arduinowiring/424

——-
Références
Excellent article sur comment bien utiliser les LED avec ou sans résistance et comprendre leur Datasheet

Categories: Geek Tags: , , , ,