Society of Robots - Robot Forum

Software => Software => Topic started by: alirezad on July 14, 2012, 08:54:24 AM

Title: how to start programming a new sensor
Post by: alirezad on July 14, 2012, 08:54:24 AM
hi
I'm new to programming AVR.
how can I start programming a new sensor that i dont know how it works.
i mean how to connect them to my AVR and how to program it.
thanks
Title: Re: how to start programming a new sensor
Post by: newInRobotics on July 15, 2012, 07:37:45 AM
If You don't know how it works, then You cannot write a program for it.

What You should look for is data-sheet of a sensor, there You should get an explanation of what signal it outputs to microcontroller.

If You tell us what sensor You are using, then we have better chances of guiding You to the correct direction.
Title: Re: how to start programming a new sensor
Post by: alirezad on July 15, 2012, 09:46:21 AM
thanks for your answer.
another question :
what kind of information can i get from a datasheet ?
Title: Re: how to start programming a new sensor
Post by: Webbot on July 15, 2012, 01:12:59 PM
what kind of information can i get from a datasheet ?
Erm... "Data!"
Like: voltages needed to power it, how much current it takes, is it controlled via I2C, SPI or just digital I/O. Even example circuits of how to wire it up.

Look at one and see.....