Pages: [1]   Go Down
Author Topic: My first post!  (Read 874 times)
0 Members and 1 Guest are viewing this topic.
JoCo N.C. USA
Offline Offline
Jr. Member
**
Karma: 1
Posts: 72
Don't know jack, but want to know it all..... Let the journey begin!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-mr-green Hi there, I am new here. I have been lurking for a while and finally registered. I am about 6 months from having my Associates degree in computer and electronics engineering. I hope to continue on to a Bachelors degree in EE next, but for now I am just excited to know this much (not much)! I am still working on how to get the magic white smoke back in IC's, they don't work once you let the magic smoke out.... Anyway, I haven't melted anything in a while so I am feeling lucky and I am wanting to mess around with a few Arduino's and I need to ask a few questions about them. I have three books on them coming but for now I am just reading up on the web (and bugging you guys). First off, I got an A in my C programming class and really liked writing code, do these program in C++ or C orrr? So I would like to get two Arduino's, one that will just check for a few 1's on some inputs, and trigger a relay that will allow 12v DC to pass. The other one I would like to get is the kind of Arduino that will play nice with my Android smartphone (S III). What do you recommend for these? What about that relay? Does it matter what kind or brand it is? For the second one, what kind of programming do I need to learn for the Android side of things? Also, I have Multisim (student version) on my laptop, will that help me at all with Arduinos or are they not on there? How freakin' awesome is it that we have this kind of stuff to tinker with!!? Thanks a lot for any and all tips or advice! See you around, Steve.   
Logged

The geeks shall inherit the Earth!

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there Steve, and welcome to the forum.

do these program in C++ or C

C++ is the language used by the IDE.

I hope you enjoy playing with your Arduino. Certainly having a couple around is helpful for testing sending/receiving and so on.

You may want to consider making paragraphs in your future posts, makes them easier to read.

I'm not sure about the Android questions, maybe someone else can help you with that.

The Arduino Uno is sort-of the "default" Arduino, and a good place to get started. You can work your way through some of the tutorials and get familiar with using it, and the IDE.
« Last Edit: November 01, 2012, 02:04:12 am by Nick Gammon » Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want to do phone-arduino interaction, this is probably your best bet:
http://www.arduino.cc/en/Main/ArduinoBoardADK

There's also this which is essentially a direct competitor but isn't arduino:
https://www.sparkfun.com/products/10748?

You can also try to connect via bluetooth. There was (is there still?) an arduino Bluetooth, and I think I've heard of people getting a USB host shield and plugging a USB bluetooth adapter into it. There may be other ways, too.

I haven't tried any of these options since I don't have an android phone. But hopefully those links will get you started.

(also, paragraphs are nice)
Logged

Topsham, Vermont USA
Online Online
Edison Member
*
Karma: 33
Posts: 1940
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Steve,

You'll have fun with Arduino, of the best kind.. where you keep learning new stuff.  And doing hands-on development all the time you are in school is really important, in my opinion, to seeing where all those subjects fit in.

A few thoughts:

- Relays and controlling power with Arduino: http://arduino-info.wikispaces.com/ArduinoPower

- Android Phone/Tablet communications: You can talk to a "regular" Arduino if it has a Bluetooth or WiFi interface. See stuff like:
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinocommander&feature=search_result
and Google "Arduino Android" for lots more.

- Don't worry about the programming. Do learn about doing cool stuff with limited resources like I/O pins, memory, speed. Look at the Arduino Mega which has lots more pins and memory. See http://arduino-info.wikispaces.com/QuickRef

Lots of info on http://ArduinoInfo.Info   Maybe start with http://arduino-info.wikispaces.com/Arduino-What-IS-it

And get some bunch of components and breadboard like a Starter Set from Adafruit, YourDuino, Sparkfun.  See the hands-on "LEARN! ARDUINO - A HANDS-ON APPROACH" pages here: http://arduino-info.wikispaces.com/YourDuinoStarter

And you'll find many friendly enthusiasts like Nick and others here. As you become a good Engineer one of your best abilities will be to ask good questions. Often.

Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

JoCo N.C. USA
Offline Offline
Jr. Member
**
Karma: 1
Posts: 72
Don't know jack, but want to know it all..... Let the journey begin!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmmmm.....paragraphs you say? smiley-confuse
Just kidding, thanks for the replies and links, that ought to keep me busy for a few days! smiley-lol
I look forward to learning enough about this stuff to at least have better questions next time. Thanks again all! Steve
Logged

The geeks shall inherit the Earth!

JoCo N.C. USA
Offline Offline
Jr. Member
**
Karma: 1
Posts: 72
Don't know jack, but want to know it all..... Let the journey begin!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Optical isolation is awesome! What other neat stuff am I missing out on!??? smiley-lol
Logged

The geeks shall inherit the Earth!

Breaking Worse
Offline Offline
Edison Member
*
Karma: 19
Posts: 1109
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Optical isolation is awesome! What other neat stuff am I missing out on!??? smiley-lol

There's a great future in MOSFETs.
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Offline Offline
Edison Member
*
Karma: 37
Posts: 1355
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
do these program in C++ or C orrr?
It's a subset of C++.  Obviously, there is no keyboard, screen, or file storage in a standard Arduino, so that part of the C/C++ library is not supported.   (As far as I know the STL containers are not supported either.)   I assume you've found the Arduino Language Referece, and Here is the full AVR library reference.

And, I haven't seen anyone using object oriented programming.   One reason might be the limited RAM.  (The program code lives in Flash, but objects are created in RAM.)
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can get STL here:

http://andybrown.me.uk/wk/2011/01/15/the-standard-template-library-stl-for-avr-with-c-streams/

Quite a few things use objects. For example, HardwareSerial:

Code:
class HardwareSerial : public Stream
{
  private:
    ring_buffer *_rx_buffer;
    ring_buffer *_tx_buffer;
...

Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2395
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

C started in the very early 1980's. In the 1990's they started thinking about extending C and came up with C++. C++ supports every thing in C. Any program written in C will build and run using the C++ compiler. The name C++ is an in joke but I'll let people here find that out for them selves.

Take a look at netbeans which gives you, for free C/C++, Java and loads of other stuff. There are also other free IDE's.

Mark
Logged

Pages: [1]   Go Up
Jump to: