I know. But I am sending the images over to the computer via USB and doing some image processing there. Is this still too slow? I only need to take one pic every 3 seconds.I want to do the same thing using an Arduino Uno and my android phone. Someone help me
That's probably exactly what I need. The picture is a little small to make out what all is going on there.If you click the link on Bill's post, you'll go to an Instructables project where the circuit is described and shown in greater detail and magnification. Just wire it up.
Thanks. I was unsure if this would work with the LED strips. I remember trying something like this two years ago. It was with a different project and it seemed the circuit didn't work unless I added a pulldown resistor and then it seemed to overheat something. Someone, back then, said that the problem might have been that the motor would keep the circuit charged. I was using small LEDs as the test circuit and they wouldn't go off when the arduino went off.Yeah, read Wawa's post. Be careful with the current. Look twice at any resistor or wire going to ground. That is why you burned up two Arduinos. (The first one was a learning experience - valuable and worth it. But the second one ... tsk.)
I'm sure it was something I did wrong but the result was I burned up an UNO. I thought maybe I had a defective UNO so I hooked up a second one and promptly burned up that one also.
I'm thinking it's time to give it another shot based on the number of hits to Gammon's web page.
This is a "thought experiment", right? A puzzle, a test? You have no intention of attaching electrodes to the tails of your pets, real or imaginary?the floor is carpeted. my pets are locked inside the room and free to move
You would need to place the bowl on a large rubber mat, so that the voltage at the tongue reaches the tail and does not leak away to earth through their paws.
3. Posez vous la question de ce qui qualifie une vrai passage en terme de transition d'état qui doit faire incrémenter la valeur: c'est lorsque vous détectez une transition 0 - 1 - 0 c'est cela?Oui c'est bien cela, une transition 0-1 suivie d'une transition 1-0 donnerait une incrémentation d'une variable. Donc, à partir de la variable val = 0, comment puis-je mémoriser ce changement d'état 0-1-0?
If (Val == valeur)
valeur = 1;
If (Val == valeur)
valeur = 0;
C'est un peu normal, en fait ton code va lire l'état de A0 à chaque boucle de loop et incrémenter une variable.Le programme tel qu'il est écrit me permet-il de réaliser une incrémentation lors du passage?
Donc tant que l'aimant est devant, la variable augmente. Le code tel que ecrit ici, teste la présence de l'aimant, pas vraiment le "passage".
Idéalement, utiliser une interruption matérielle serai plus adapté.
Tu pourrais écrire plus simplement:Code: [Select]