Recent Posts

Pages: 1 2 [3] 4 5 ... 10
You have not provided much information. It's a bit like saying I have a car, what route should I take to get to Manchester?

How (physically) do you propose to get the hex file to the Arduino?

Hardware / Re: Inseguitore Solare Astrono...
Last post by astrobeed - Today at 09:55 am
LE schede, nel tuo caso, dato che dalla foto quella inferiore non sembra essere un semplice alimentatore
Quella sotto è un doppio ponte H, una coppia di mosfet dovrebbe essere montata sotto, più un paio di regolatori di tensione lineari, c'è anche il feedback della corrente, serve per evitare di sforzare troppo i motori e rilevare eventuali blocchi meccanici della struttura mobile.
How many buttons at the same time?

Sorry, I meant to say 74hc165, not 74hc164.
I only have experience with the nRF24L01+ 2.4GHz transceivers.

I assume all 5 of your devices are intended to communicate with each other. if not, just assign different channels to the different pairs and there won't be data collisions.

If they are all to operate on the same channel and if you define one of them as master it would be easy to arrange for communication with several others without risk of data collisions - and at a higher rate than 2 per second.

I suggest extending the second example in this Simple nRF24L01+ Tutorial to communicate with several slaves.

Robotics / Re: PS2 mouse - converting del...
Last post by mrscraber - Today at 09:51 am
Well, if you move mouse too fast you get max 127 counts in each direction which results in inaccurate measurement due to some not being recorded.

According to wiki ps2 interface, the range should be -255, 255 - it's 9 bit two complement intiger.
However ps2 library uses chars as variables which are 8 bits. Any solution how to add that 9th bit? This should result in doubling maximum distance before going out of range
Français / Re: Problème rotation servomot...
Last post by landid - Today at 09:51 am
Comme je t'ai dit que je n'ai pas de servo  :) j'ai pris le temps ce matin de bien lire le lien OpenClassroom cité plus haut. Ils disent là que le servo se déplace dés le lancement de la commande servo.write(pos) et se maintient seul dans la position indiqué ce qui permet de laisser le script arduino se dérouler pour faire autre chose. Voir l'exemple de la led.

Je me demande donc pourquoi tu utilise ces boucles ? Cela provoque un blocage supplémentaire de script.
Code: [Select]
for(pos = 0; pos < 180; pos += 1)
// Voir aussi la raison de cette ligne
pinMode(pos, OUTPUT); // ???

Si dessous le code d'OpenClassRoom
Code: [Select]
#include <Servo.h> //on importe la bibliothèque Servo
int pinServo=8; // variable pour stocker le pin pour la commande
Servo leServo; // on définit un objet Servo nommé leServo

void setup() {
  leServo.attach(pinServo); // on relie l'objet au pin de commande
  pinMode(13,OUTPUT); //pin 13 en mode OUTPUT

void loop() {
  leServo.write(0); // on dit à l'objet de mettre le servo à 0°
  diode13(); // appel de la fonction diode13() définie plus bas
  leServo.write(179); // position à 179°, 180° est à éviter
  diode13(); // appel de la fonction

void diode13(){
  // on fait clignoter 30 fois la LED 13
  for (int t=0;t<30;t++){

Hardware / Re: Amplificare suono con tda2...
Last post by Etemenanki - Today at 09:48 am
Il "generatore di note" lo puoi anche rifare con un banale 555 (anzi, due, per il bitonale), poi lo puoi amplificare con il TDA o un qualsiasi altro finale in grado di pilotare una tromba da 4 ohm ...

... oppure prendi questo, o questo, o una qualsiasi di quelle gia fatte, e ti risolvi il problema ... a proposito, lo sapete vero che l'auto munita di sirene e lampegianti blu non potra' mai lasciare un locale chiuso, perche' la legge vieta l'uso di lampeggianti blu e sirene sui veicoli civili ? ... tanto per chiedere ...

Ah, si, ci sarebbero anche questi per i guidatori ... (scusa, non ho resistito :D)
For the buttons it is necessary that I can use multiple buttons at the samen time. When i have time I am going to read about the i/o expanders!
Carriage return is not random.
It always has the decimal value 10
LF is 10, CR is 13

(CRLF pair is embedded in my mind as ascii 0D0A in years' worth of hex dumps.)

You're printing the ascii code of the character (49 is 1, 50 is 2 etc): change the Serial.print to a Serial.write.

Then the 10 is the ascii newline (aka line feed): switch to no line ending in the bottom right of the monitor.

Pages: 1 2 [3] 4 5 ... 10

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131