Society of Robots - Robot Forum

General Misc => Misc => Topic started by: clone on January 11, 2009, 09:09:33 PM

Title: Where to start? new robot
Post by: clone on January 11, 2009, 09:09:33 PM
I wanna make a robot.. and what it does is at a certain temperature it will turn off a heating device.  it will use a thermistor as the temperature sensor, and a solenoid to control the power of the heating device.  I want to be able to add more sensors later on as well as more output ports aswell.

what kind of micro controller do you think i should get for this? where should i start?
Title: Re: Where to start? new robot
Post by: dt on January 12, 2009, 12:51:50 AM
I guess any board will do, if you know some C then you can go with the Arduino :)
The language for Arduino is pretty simple...
bool device = 1; //1 for true/on
if(temperature > 90)
      device = 0; // 0 for false/off
.
.
.
Title: Re: Where to start? new robot
Post by: frodo on January 12, 2009, 02:25:45 AM
arduino is a different robot programming language in between BASIC and C which is compatible with the roboduino board.
Title: Re: Where to start? new robot
Post by: chelmi on January 12, 2009, 11:28:17 PM
arduino is a different robot programming language in between BASIC and C which is compatible with the roboduino board.

Naaaaa

The Arduino "Language" is C (or even C++) plus an extensive set of libraries to easily access the hardware. But its still C.
Title: Re: Where to start? new robot
Post by: airman00 on January 13, 2009, 06:55:42 AM
it is C with an extensive library.
BUT because there are soooo many libraries and a majority of people ONLY use the subroutines that were prewritten for them in the libraries, it is in effect sort of like BASIC. I bet you many of the people using the Arduino think that Arduino is a language and is similar to BASIC.
Title: Re: Where to start? new robot
Post by: chelmi on January 13, 2009, 10:19:16 AM
it is C with an extensive library.
BUT because there are soooo many libraries and a majority of people ONLY use the subroutines that were prewritten for them in the libraries, it is in effect sort of like BASIC. I bet you many of the people using the Arduino think that Arduino is a language and is similar to BASIC.

That's very subjective. People thinking it's similar to BASIC doesn't make it sort of like Basic.
Maybe it's my background in computer science, but Arduino and C have the same syntax, same type system, same execution semantic and share most of their core library (avr-libc).
BASIC as a completely different syntax, a completely different type system, the execution semantic is remotely similar, and the core library is not even comparable (what version of basic are we talking about anyway?).

I know, I sound a bit pedantic :) but saying that it's similar to basic is somehow misleading.
And don't get me wrong, I LOVE the Arduino. I own a board and I use the *libraries* quite often.
Title: Re: Where to start? new robot
Post by: airman00 on January 13, 2009, 03:34:25 PM
I see what you are saying and I agree: Syntax and Execution Style is different between Arduino and BASIC

However, I was referring to how complex procedures are prewritten to be one line commands in both Arduino and BASIC. For example SEROUT is a one line command to send out a software serial byte , it is used in both Arduino and BASIC . By the Arduino, SEROUT is a prewritten subroutine that is very complex ( software serial is pretty complex). One could also argue that SEROUT by BASIC is also prewritten subroutine since the compiler converts the SEROUT command to its equivalent code in assembly language. So it is possible to make the case that both Arduino and BASIC use prewritten subroutines/commands to do complex functions - making it very easy for the end user to make a program.
Title: Re: Where to start? new robot
Post by: ArcMan on January 13, 2009, 04:03:45 PM
I know, I sound a bit pedantic :)

That's alright.  All engineers are pedantic.  Just ask my wife.  :P
Title: Re: Where to start? new robot
Post by: frodo on January 13, 2009, 05:22:52 PM
lol, as i was saying, arduino language is like in the middle of C and BASIC because of the libraries used/available.