Hey guys,
In our project we have codes for all sensors except this particular sensor that will be used for wind direction output.
Can you help and give a somple code to make this last thing work?
thanks.
Hey guys,
In our project we have codes for all sensors except this particular sensor that will be used for wind direction output.
Can you help and give a somple code to make this last thing work?
thanks.
projectsira:
Can you help and give a somple code to make this last thing work?
Can you help yourself by giving us some information about the device you want to use? Like a link to the specifications.
Or did you imagine that everyone who reads the forum already has three or four of them?
...R
While the EMS22A & 22D are different models, (A is Absolute 1024, D is Direction/step 512 PPR) the following thread may get you started.
http://forum.arduino.cc/index.php?topic=110250.0
Ray
Hey still no sucess I had problems loging in back to this forum but nevermind,
I think better to start first with the connections, anyone know for sure how the legs should be conected?
this is the data sheat, what are all the 5 conections expet of ground?
thanks in advance.
There is a table in the document. What do you not understand?
...R
I'm using arduino
the table writes: pin 1 - pulse, pin 2 - direction, pin 3- GND, pin 4 - index, pin 5 - vcc, pin 6 - cs
and my question is:
pins 1,2,4,5 - to digital pin or to pwm ?
I think the 6 pin is to GND also ? is it true ?
and from which pin do I get the value I want ?
about the code:
what is the reading code ?
if u can please tell me those stuff I will really bless you
I think that you are over your head here. It seems like you know absolutely nothing about electronics or programming.
Start out by blinking an LED, reading some buttons etc. - and when you have a basic understanding of how Arduino works, you can go back to your assignment.
// Per.
projectsira:
I'm using arduino
the table writes: pin 1 - pulse, pin 2 - direction, pin 3- GND, pin 4 - index, pin 5 - vcc, pin 6 - cs
and my question is:
pins 1,2,4,5 - to digital pin or to pwm ?
I think the 6 pin is to GND also ? is it true ?
and from which pin do I get the value I want ?about the code:
what is the reading code ?
As far as I can see you get the readings from pin 1 and pin 2 (and to skip to your last question, I don't know how to write a program to read them, but I could experiment).
I'm not sure what pin 4 does.
Pin 6 allows you to select the device (or not) with the Arduino. This is only needed if you have several devices. In your case, just connect it to GND so it is permanently selected.
I don't really understand why you are asking about PWM pins unless the lettering on the Arduino is confusing you. All the pins can be used as digital pins (except 0 and 1 which are used for Serial communications). Only those marked PWM can be used with analogWrite() which you don't need to read your device.
I suspect a bit of Googling will find some demo code for reading the device.
...R
projectsira:
Hey guys,
In our project we have codes for all sensors except this particular sensor that will be used for wind direction output.
Can you help and give a somple code to make this last thing work?
thanks.
OK, I took another stab at this and use the Google string " EMS22D Rotary Encoder Tutorial with Arduino". There is a YouTube demo by Anders Olsson that clearly shows that he has working code; however, he did not post a link. You could politely ask via YouTube if the code is published on the web.
Ray
The manufacturer's website is always a good place to look
...R