Author Topic: sonar and MCU help  (Read 1430 times)

0 Members and 1 Guest are viewing this topic.

Offline icoms8Topic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
sonar and MCU help
« on: February 28, 2009, 04:15:33 PM »
ok i am buying a sonar from www.acroname.com and i was wondering how to connect it to my MCU. I dont know if it comes with a cable or i have to buy one. And i have a MCU i am buying from http://www.thebotshop.com and i dont know how to connect it to the computer. it is a ooPic R Microcontroller. can you tell me what kind of cable i will need?
 (p.s. the sonars a srfo4)

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: sonar and MCU help
« Reply #1 on: February 28, 2009, 04:53:41 PM »
this http://www.acroname.com/examples/10027/10027.html ? to connect it use the 5 holes up the top, dont know what the third one does tho???
Howdy

Offline icoms8Topic starter

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
Re: sonar and MCU help
« Reply #2 on: March 01, 2009, 05:06:52 PM »
no this one http://www.acroname.com/robotics/parts/R93-SRF04.html and what i mean is there a cable i can buy

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: sonar and MCU help
« Reply #3 on: March 01, 2009, 05:28:11 PM »
Make your own using wire and male/female headers.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: sonar and MCU help
« Reply #4 on: March 03, 2009, 06:05:02 AM »
The datasheet says exactly how to connect it, even with pics and code examples . . . ;D


edit: you *did* say which sonar you were using, but my brain wasn't working at the time . . .
« Last Edit: March 09, 2009, 03:57:00 AM by Admin »

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: sonar and MCU help
« Reply #5 on: March 03, 2009, 06:30:14 AM »
if its an devantech srf02,srf04 or srf08 sonar(what devantech sells), its likely that there will be an object library for the oopic already aswell as example code provided with the oopic software. From that end you are fine youve just got to decide how to connect it. it can be connected to the serial port or to an I2C port. I know definately that there is object support for the i2c connection so this is the one youre likely to want.

 The srf sonars have a 5 pin connection. Theyre not supplied with header pins so there is nothing to physically connect to, you'll have to get some male headers to solder into the holes. Only 4 of these pins are needed for I2C the mode pin should be left unconnected. Without knowing what oopic board you are getting its hard to know how you would connect to it but the sonar needs the 2 I2C pins(SCL & SDA) aswell as +5v and 0v(GND). Its likely that you are going to have to make a custom connector but it shouldnt be difficult.

 


Get Your Ad Here