Hack

TwitterFacebook
Get flash to fully experience Pearltrees
Welcome back fellow arduidans! In this article we introduce the millis(); function and put it to use to create various timing examples. Please ensure you are running version 13 or upwards of the Arduino IDE . Millis? Nothing to do with lip-syncers… hopefully you recognised milli as being the numerical prefix for one-thousandths; that is multiplying a unit of measure by 0.001 (or ten to the power of negative 3). http://blog.littlebirdelectronics.com/tutorial-arduino-timing-methods-with-millis

Tutorial: Arduino timing methods with millis() - Birds on the Wire

http://www.pobot.org/Modifier-la-frequence-d-un-PWM.html

Modifier la fréquence d'un PWM - PoBot

Un signal PWM est défini par son rapport cyclique (le temps au niveau haut par rapport à la période totale) mais aussi par sa fréquence. C’est cette fréquence qui nous intéresse aujourd’hui : il faut l’adapter à l’usage qu’on va faire, de quelques centaines de Hertz à plusieurs kHz. Pour un usage courant en électronique ludique, 500 ou 1000 Hz sont suffisant pour modifier l’intensité d’une led, notamment pour obtenir des couleurs variées sur un éclairage RGB, ou pour commander un dispositif externe en faisant varier une tension.
Une fois l’upload terminé, l’effet ne s’est pas fait attendre, une écriture permanente sur le port serie… et, donc à chaque allumage de l’arduino, un lancement fait après 500ms de l’application (valeurs du bootloader). - Appuyer sur le bouton de reset et dès la fin de l’initialisation du bootloader lancer le DTR et uploader le programme afin que l’upload soit terminé dans les 500ms ! pulsedtr.py /dev/ttyACM0 && /usr/share/arduino/hardware/tools/avrdude -V -F -C /usr/share/arduino/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyACM0 -cstk500v1 -b 115200 -D -U flash:w:blink.hex La dernière action peut ne pas marcher du premier coup (une 20 de coups pour moi). Il faut attendre que les leds arrêtent de clignotter pour lancer cette commande, mais le faire rapidement afin d’être dans les 500ms ! http://blog.pilloud.fr/2011/05/debogage-dun-arduino-ecrivant-sur-le-port-serie/

Débogage d’un arduino écrivant sur le port série | G[illes|eek]

At sometime or another you may run out of pins on your Arduino board and need to extend it with shift registers. This example is based on the 74HC595. The datasheet refers to the 74HC595 as an "8-bit serial-in, serial or parallel-out shift register with output latches; 3-state." In other words, you can use it to control 8 outputs at a time while only taking up a few pins on your microcontroller. You can link multiple registers together to extend your output even more. (Users may also wish to search for other driver chips with "595" or "596" in their part numbers, there are many.

ShiftOut

http://www.arduino.cc/en/Tutorial/ShiftOut
Si vous achetez un atmel, qui ne coute qu'environ 3€, vous pouvez le programmer aussi bien qu'un arduino, et c'est plus facile a integrer dans un montage Seul problème: le programmeur coute une fortune, pas besoin de depenser d'argent si vous avez déja un arduino! Materiel Necessaire: On va utiliser la puce qui se trouve sur l'arduino pour communiquer en usb entre le pc et l'atmel. Pour cela on soude les 4 pins secables dans les trous pres de la puce usb de l'arduino, puis on les relie a l'icsp de l'atmel.

Arduino BitBang

http://tutos.dryades.org/electronique/bitbang/

rh_count

http://www.phanderson.com/picaxe/rh_count.html This discussion focuses on a relatively simple technique for measuring relative humidity using a sensor. This sensor consists of a capacitor which varies with relative humidity and is used in a 555 circuit to generate a pulse train of frequency related to relative humidity. The number of pulses over a one second period are counted and the RH is then calculated. It is desireable to measure temperature as people are usually interested in both the relative humidity and temperature.
http://wiki.t-o-f.info/index.php?n=Arduino.I2C

Ressources pour l'interactivité | Arduino / I2C

Par exemple, le capteur TPA81 à l'adresse I2C 8 bits de 0xD0 (B11010000) par défaut. En décalant les bits vers la droite, l'adresse I2C devient 0x68 (B01101000): Rp=1.8k byte i2c_data[NUMBER_OF_BYTES]; // Set register Wire.beginTransmission(ADDRESS); Wire.send(REGISTRE); Wire.endTransmission(); // Request data Wire.requestFrom(ADDRESS, NUMBER_OF_BYTES); // Wait for register's data while (Wire.available()

Arduino to Twitter over USB - wellsb.com

There are many reasons to want a project with the ability to provide status feedback. One useful method for providing feedback is by posting updates to Twitter . This enables one (or many people) to monitor a system from anywhere. It is even possible to, then, receive SMS updates to your phone. I will describe how your Arduino can become a versatile Twitter-enabled device. A simple Google search shows that there is plenty of documentation available for using an Arduino with an ethernet shield. http://wellsb.com/post/5135881420/arduino-to-twitter-over-usb
http://www.freeduino.org/ ... an evolving index of practical subjects for the Arduino and Freeduino microcontrollers, as found in the Arduino site , Playground wiki, forum and that big WWW thing. Everything you read here will work on Arduino , the many versions of Freeduino , the Barebones and RBBB , the Boarduino , the iDuino and MAXserial , the eauDuino , the Jeenode , the many Arduino-compatible boards listed below, and of course the new-kids-on-the-block, the Sanguino , the Freeduino EPIC and the Arduino MEGA . Because of the different hardware layouts of these boards, slight modifications will occasionally be required between physical platforms. Last update: July 7th, 2010.

The World Famous Index of Arduino & Freeduino Knowledge

http://labs.teague.com/

Teague Labs-Mozilla Firefox

We start off this post with the solution to our button feel issue from the our previous build. And here it is, we used the original ‘Duke’ board. Pretty obvious, eh? At least, it seems so now.
I know a lot of web developers who want to get into Arduino hacking but feel like the learning curve is too steep or that they don’t have the time to get their heads around it. I don’t necessarily agree with these reservations (these are smart folks after all) but regardless I created RESTduino to remove some of these obstacles. RESTduino is a simple sketch (an Arduino program) that lets you talk to the Arduino using easy REST -like http requests. For example, if you connect an LED between pin #9 and ground on the Arduino, you can turn it on using this request: This can be used to read the position of a switch, for example. If you want to read the range of something like a thermosister (temperature sensor) you can connect it to one of the Arduino’s analog pins and use a request like this:

RESTduino - Arduino hacking for the REST of us - jjg's posterous

Bonjour, Voici mon projet : Je possède un petit arduino ( carte électronique de développement ) qui envoi des données via la liaison série sur un port usb ( des valeurs numériques de tensions ) le seul problème c'est que je ne sais pas comment faire pour que le PC enregistre chaque donné sur le PC dans un fichier texte ou .csv ( pour pouvoir exploiter avec excel ). Je possède windows seven pro. Savez vous si je peux le faire simplement avec python ou je dois me tourner vers d'autres langages ? ( java ?

Enregistrer données port série dans un fichier ? - Forum des professionnels en informatique

Since we love the ever-popular Arduino, we’ve scoured the vast reaches of the interweb and unearthed the best Arduino projects just for you. The Arduino is an open source programming platform which allows you to easily control electronics with a microcontroller – See our Arduino tutorial to learn all about it. Did we miss something? Know of more fantastic Arduino projects? Send us your projects or let us know in the comments. Get more hacks and mods via RSS .

Top 40 Arduino Projects of the Web | Hack N Mod

arduino hacks - Hack a Day

[Martin] sent in a great guide to a simple Arduino based theremin. It’s a very small build – just a single common IC and some passive components – and easy enough to build in an afternoon. The theremin is based on a simple LC oscillator built around a 7400 quad NAND gate IC, a wire antenna, and a few caps and resistors. When a hand moves closer to the antenna, the frequency of the oscillator increases; when a hand moves away, the frequency decreases.