Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

4 posts

Wannabe Geek

#109466 20-Sep-2012 10:56
Send private message

Hi, I am working on a robot that is going to run on its own computer programing.  However, I do not know how to program a CPU or hardrive for my robot.  Furthermore, I am using air muscles and puller systems for the movement of the robot, except I need to control those functions with a computer.  However how do you do that?

Create new topic
1819 posts

Uber Geek


  #688701 20-Sep-2012 11:31
Send private message

Arduino is what your looking for, it's a simple to use micro-controller that connects to relays so you can control other bits of hardware.

4 posts

Wannabe Geek

  #688726 20-Sep-2012 11:57
Send private message

Yes I already know about them, however it says on their website that these circuit boards respond to outside occurences?  I don't know if I'm being clear, but for example, it responds to light or sound.  Also it is supposed to connect to a computer.  What about a CPU by itself or some other harddrive/ hardware?
Also can you program those circuit boards?


558 posts

Ultimate Geek


  #688746 20-Sep-2012 12:10
Send private message

The Arduino is what you want to read analog(Light Temp etc) signals. It has 6 Analog inputs. To connect it to a computer you will need to buy either a Ethernet Shield or buy the Arduino with ethernet.

The other option is you could use a Raspberry Pi as this has ethernet built in and has a 32bit CPU for around the same cost as the Arduino what the Pi is lacking is Analog inputs so you would need to buy some ADC converters to convert the Analog signal to digital or buy a Arduino and attach it by USB.

If you need power go for the Pi. If you need simplicity go for the Arduino.

You will also need something to drive the motors as the Arduino can only output about 40mA and i think the Pi is much the same. That could just be something as simple as MOSFETS to something more complicated like a motor controller. You will need to test the motor under load as they can suck up the power. Which will effect your choice in controller.

Edit yes you program them. The chip is a ATTMega the Arduino is the programming side of things.

Geoff E

2255 posts

Uber Geek

  #688747 20-Sep-2012 12:11
Send private message

Raspberry Pi migth be an option, it exposes GPIO pins and common protocols to interface with other hardware like I2C are also there.

Arduino has inputs as well as outputs, so this also allows you to connect sensors for responding to light, sound etc.

For a less steep learning curve, maybe even consider a Lego NXT.

The three hardest things to say: 1. I was wrong, 2. I need help, 3. Worcestershire sauce.



3267 posts

Uber Geek


  #688892 20-Sep-2012 15:19
Send private message

+1 for Lego. For 11 years they made a loss until they came up with Mind Storm, made it hackable, and it became an overnight success (from documentary on Discovery Channel). You buy a basic kit and it contains Bluetooth (and WiFi?) for controlling your robot.

You can never have enough Volvos!

4 posts

Wannabe Geek

  #689145 20-Sep-2012 23:02
Send private message

Thanks for the advice. I will shop around a bit. But, I don't understand something: do you directly program the different switches like Arduino or do you connect it to another programed computer.  Also, does Ardino only connect into computers or does it also connect into CPUs/Circuit boards?  I am trying to make the robot compact by including the CPU inside the robot, so that it acts on program and I don't control it manually.  However, I am not sure how to do this.  So far I just compiled the code in C++ and casted the metal parts of the robot, I am having trouble figuring out how to control the limbs and ect.

558 posts

Ultimate Geek


  #689292 21-Sep-2012 10:53
Send private message

The ATMega it self is a very basic 8-Bit CPU. Arduino is a language built on top of the ATMega. So it can run stand alone or it can communicate via Serial Communication over USB or you can use Ethernet and control it via TCP/IP. It can also go via wireless such as bluetooth and wi-fi or Zigbee but these will be add on boards.

So on your computer you can create a script to send commands to the Arduino via either method. So on the computer I can start up a serial connection and just send F(or some other key) the Arduino can then tell that you have sent the letter F and then do a task based on that. The Arduino can also send data back so it can tell the computer when the task has been done.

The Arduino has a set of Pin's that are GPIO(General Purpose Inputs Outputs) These pins can be set High and Low so in effect the Pin's on the Arduino are Computer Controlled Switches. The only issues is that they can only output about 40mA which will be far less than the motors will require. To fix this what you need to do is add MOSFET's this will let you put more current into the motors.
More info about this here.

There is loads more info about the Arduino on wikipedia
There is also more examples here
More about the Arduino serial communication.

Geoff E

Create new topic

News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35

UFB hits more than one million connections
Posted 6-Aug-2020 09:42

D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01

New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35

Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21

Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11

Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05

Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26

Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07

Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45

Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48

Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50

Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00

Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51

QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.