
Hack
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).
Tutorial: Arduino timing methods with millis() - Birds on the Wire
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 !
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
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
rh_count
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.The World Famous Index of Arduino & Freeduino Knowledge
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 .

