The idea of creating another function out of the loop seems nicely logic, I will put my needs in pseudo-code and give it a try, give me a few days and I'll tell you how it went.
Type: Posts; User: cross-side
The idea of creating another function out of the loop seems nicely logic, I will put my needs in pseudo-code and give it a try, give me a few days and I'll tell you how it went.
ok I've got this problem that is driving me crazy. (noob here)
I have two temperature sensors. #1 and #2
I want to read #1, then store the value.
Then, for the next 30 minutes, I want to...
I wanted to make things move. Bought an Arduino, some servos and a power supply. Slowly got into learning c, electronics and the interaction of both.
And here I am! The web is a crazy thing,...
So I guess The easiest, and the right, way to solve this is to wire my sensors to the analog pins of the Arduino. Easy does it!
But then, as I remember CommonTater saying :
then will the...
first, thanks for the All About Circuits link, It seems very complete, sure I'll use it a lot.
for the sensors I use, as I said, I took them from cheap night-lights, but they seem very common,...
I'm not sure I get what resistive dividers are, it seems to be a way to create a ''reference'' voltage, so that if you read a voltage that is different from that reference, then it means something...
I got it!
All servos move together.
I have positioning control.
I have speed control.
And I learned that it's worth it to search the forums for similar problems. Turns out some genius named...
I'll try getting those caps next time I go to the store. Do you mean I should replace the resistor by a capacitor? What is the advantage of doing this?
For the variables, I've done the upgrade,...
A trimmed down version of this program works fine, so the buttons should not be the problem. (they give their signal through the use of a pull-down resistor)
the Arduino board uses a simplified...
it's the first thing the moveServo function does. buttonState takes the value of a button reading, then checks if it has changed from pressed to not-pressed, comparing itself to lastbuttonState. So,...
Hello,
I am working on a project that involves 5 servomotors that need to move in a coordinated way. The servos are controlled via an Arduino micro-controller. I've been learning C through this...