2

Author Topic: how to start programming a new sensor  (Read 717 times)

0 Members and 1 Guest are viewing this topic.

Offline alirezadTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
how to start programming a new sensor
« 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

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: how to start programming a new sensor
« Reply #1 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.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline alirezadTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: how to start programming a new sensor
« Reply #2 on: July 15, 2012, 09:46:21 AM »
thanks for your answer.
another question :
what kind of information can i get from a datasheet ?

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,150
  • Helpful? 109
Re: how to start programming a new sensor
« Reply #3 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.....
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here