Pages: [1]   Go Down
Author Topic: Mr General Robot wiring  (Read 2226 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I have a Mr general robot and I'm having a problem in wiring it up to my Ardunio UNO, there was no wiring instructions in the kit,Now I have read the Mr_General I/O pin defs, not a problem where as to where each item connected to the UNO but having a problem identifying the pinouts on the main board, eg:

#define IRleft 4            // Compound Eye Left      - analog  input  A4
#define IRright 5           // Compound Eye Right     - analog  input  A5       
#define IRup 6              // Compound Eye Up        - analog  input  A6
#define IRdown 7            // Compound Eye Down      - analog  input  A7
#define IRleds 2            // Compound Eye LEDs      - digital output D2

#define neckleftrightpin 5  // PAN  Servo             - digital output D5
#define neckupdownpin 6     // TILt Servo             - digital output D6
#define leftmotorpin 9      // Left  Motor Servo      - digital output D9
#define rightmotorpin 10    // Right Motor Servo      - digital output D10

#define rightfrontsenpin 3  // Front Right Sensor     - analog  input  A3
#define leftfrontsenpin 2   // Front Left  Sensor     - analog  input  A2
#define leftrearsenpin 1    // Rear  Left  Sensor     - analog  input  A1
#define rightrearsenpin 0   // Rear  Right Sensor     - analog  input  A0

#define rightfrontLED 7     // Front Right  LEDs      - digital output D7
#define leftfrontLED 8      // Front Left   LEDs      - digital output D8
#define leftrearLED 3       // Rear  Left   LEDs      - digital output D3
#define rightrearLED 4      // Rear  Right  LEDs      - digital output D4

What are the header numbers for the above?

Any help will be appreciated.

Thanks in advance,

Trevor
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://letsmakerobots.com/node/24348

This page has a schematic showing where each of the connections appear on the Mr General board.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for that, might even get it working now

Cheers
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok have another question, the diagram is for a Mr General with the ATmega8A chip, I'm using the Adrunio Uno board which i think has diferent pin layout, can anyone help with that layout.

Thanks Trevor
Logged

San Diego, California
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Uno doesn't have enough analog pins to support that layout. The Uno has six analog inputs, and you'll need eight, in order to connect the four photo transistors from the compound eye, and the four LDRs for the corner sensors.

You'll need to either use an Arduino Mega, or add an analog multiplexer, such as the 74HC4067, to expand the number of analog inputs available to you.

The Arduino uses very straightforward pinout identification, and what you posted shows exactly what to connect (except for the fact there is no analog A6 or A7 on an Uno). Read up on the hardware reference at

http://arduino.cc/en/Main/ArduinoBoardUno

as it explains what all the pins do, and how they are named.
Logged

Pages: [1]   Go Up
Jump to: