Author Topic: arduino anyone?  (Read 10399 times)

Offline taylorclark

  • King of the Wii-tards
  • *
  • Posts: 163
  • Post quality +0/-0
  • Gender: Male
  • I feel like I'm taking crazy pills!
    • myspace
arduino anyone?
« on: March 19, 2009, 10:52:56 AM »
I got an arduino duemilanove a few weeks ago, and its been fun to play with, but im curious how many people here have them and use them. So who has one? what have you created with it?
Gamertag- titan501x

Offline DarkShot

  • I approve your mom
  • Acid Modder
  • *
  • Posts: 781
  • Post quality +0/-0
  • Gender: Male
  • ÜBERRAPESKILLETS
Re: arduino anyone?
« Reply #1 on: March 19, 2009, 11:24:44 AM »
I've been considering getting one and use it for lighting and other play.

How easy is it to use?

Offline ~:Dhruv:~

  • Millennium Poster
  • *
  • Posts: 1321
  • Post quality +0/-0
  • Gender: Male
  • [quote author=Reaper link=topic=30647.msg227184#ms
    • Infectech
Re: arduino anyone?
« Reply #2 on: March 19, 2009, 11:35:33 AM »
care to explain what is it ?
  you look like a carrot.
My nickname at school is carrot cake, because i can't get tan. I get orange. and my face is shaped like a carrot. And i make a mean carrot cake.

Offline DarkShot

  • I approve your mom
  • Acid Modder
  • *
  • Posts: 781
  • Post quality +0/-0
  • Gender: Male
  • ÜBERRAPESKILLETS
Re: arduino anyone?
« Reply #3 on: March 19, 2009, 11:38:22 AM »
An open source I/O platform.

It's essentially a simple controller that you can program.

For instance, if I have 15 pins I can use, and I want to attach an LED on pin 13 and make it turn on and off every second I can.

T'was a basic example.

Do you understand coding dhruv?

Offline ~:Dhruv:~

  • Millennium Poster
  • *
  • Posts: 1321
  • Post quality +0/-0
  • Gender: Male
  • [quote author=Reaper link=topic=30647.msg227184#ms
    • Infectech
Re: arduino anyone?
« Reply #4 on: March 19, 2009, 11:41:27 AM »
yeah a bit, i've been meaning to work on it after my exams :)
  you look like a carrot.
My nickname at school is carrot cake, because i can't get tan. I get orange. and my face is shaped like a carrot. And i make a mean carrot cake.

Offline taylorclark

  • King of the Wii-tards
  • *
  • Posts: 163
  • Post quality +0/-0
  • Gender: Male
  • I feel like I'm taking crazy pills!
    • myspace
Re: arduino anyone?
« Reply #5 on: March 19, 2009, 11:44:18 AM »
How easy is it to use?

its pretty simple, the only thing I'm really struggling with is the actual programing. but then again i've never had any previous experience with programing. but for being a complete noob, its pretty simple.
Gamertag- titan501x

Offline DarkShot

  • I approve your mom
  • Acid Modder
  • *
  • Posts: 781
  • Post quality +0/-0
  • Gender: Male
  • ÜBERRAPESKILLETS
Re: arduino anyone?
« Reply #6 on: March 19, 2009, 11:48:06 AM »
Ya I'm learning programming in visual basic, so I understand the concepts in coding.

If it's easy for a nub, than it should be OK for me.

and dhruv, Here is the site where you can read up on it if you wish.

Offline ~:Dhruv:~

  • Millennium Poster
  • *
  • Posts: 1321
  • Post quality +0/-0
  • Gender: Male
  • [quote author=Reaper link=topic=30647.msg227184#ms
    • Infectech
Re: arduino anyone?
« Reply #7 on: March 19, 2009, 11:53:02 AM »
@Darkshot- thanks buddy, n could you gimme some tips on how to go about learning programming ? Also it would be good if we organised the news team a bit 
  you look like a carrot.
My nickname at school is carrot cake, because i can't get tan. I get orange. and my face is shaped like a carrot. And i make a mean carrot cake.

Offline DarkShot

  • I approve your mom
  • Acid Modder
  • *
  • Posts: 781
  • Post quality +0/-0
  • Gender: Male
  • ÜBERRAPESKILLETS
Re: arduino anyone?
« Reply #8 on: March 19, 2009, 12:07:36 PM »
There are a bunch of ways to do it.

If you'd like to discuss, I'd recomend making another thread here so we aren't thread jacking.

AND

Check out the post in the news thread.

I'm a step ahead of ya.

Offline taylorclark

  • King of the Wii-tards
  • *
  • Posts: 163
  • Post quality +0/-0
  • Gender: Male
  • I feel like I'm taking crazy pills!
    • myspace
Re: arduino anyone?
« Reply #9 on: March 19, 2009, 12:46:05 PM »
There are a bunch of ways to do it.

If you'd like to discuss, I'd recomend making another thread here so we aren't thread jacking.

i'd also like to learn more... also, i found this on the arduino website http://www.arduino.cc/playground/uploads/Main/arduino_notebook_v1-1.pdf

it looks like it could be pretty useful, i just haven't had the time to read it all the way through it.
Gamertag- titan501x

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: arduino anyone?
« Reply #10 on: March 20, 2009, 01:59:07 PM »
Arduinos are awesome, but also limiting. I prefer to just use PICs.

Sigs by Alien_X
www.ax-elec.com

Offline Blizzrad

  • Chaos Lover
  • *
  • Posts: 267
  • Post quality +0/-0
Re: arduino anyone?
« Reply #11 on: March 20, 2009, 03:26:11 PM »
The arduino is a relatively inexpensive and very convenient platform for getting started with microcontrollers. The board is based around the Atmel ATmega168 AVR (at least mine was, not sure if this is still the case in new revisions) so it is kind of like an AVR on training wheels. It also has an FTDI USB to RS232 chip which along with a special bootloader pre-flashed to the AVR, allows you to do everything over a single USB connection.

The big thing that distinguishes the arduino from being just another AVR dev board is that it is designed to work with it's own simplified programming environment and "language" (basically a simplified version of C). One nice thing about this is the general syntax and program structure you use with arduino will lend itself well to learning real C later on, which is a useful skill to have (unlike some languages designed to be beginner friendly like BASIC, which is kind of a dead end street). The programming notes you linked are a good resource. Another good learning technique is to find completed projects that interest you, and review/modify the source code until you understand how it all works. 

I used to have a boarduino (cheaper breadboard friendly variant) that I used for a short while before my friends got me into using AVRs. If you are new to programming and digital electronics these tutorials are a great place to start. You can do a lot with the arduino (which is apparent from the the diversity of arduino projects that can be seen online) but it does place a lot of limits on how you configure the chip, so I recommend moving on to using bare microcontrollers if you begin to feel limited by the arduino. I know this forum is more devoted to PIC microcontrollers for some reason, but there are many varieties of other micros out there with their own unique set of features.

AVRs also have the benefit of a free, open source, Linux supported C compiler (same one the arduino software runs in the background), so you will never have to pay for any software. The most simple parallel port AVR programmer can be assembled from some wire and a couple resistors, and the AVRs themselves usually cost between $2.00 - $5.00 and can be reprogrammed many thousands of times, so the price of admission is mostly just in time and effort. I'm starting to ramble here, so good luck with your arduino.
« Last Edit: October 31, 2009, 07:47:03 AM by Blizzrad »

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: arduino anyone?
« Reply #12 on: March 21, 2009, 01:49:48 AM »

(unlike other languages designed to be beginner friendly like BASIC, which is kind of a dead end street).

AVRs also have the benefit of a free, open source, Linux supported C compiler (same one the arduino software runs in the background), so you will never have to pay for any software. The most simple parallel port AVR programmer can be assembled from some wire and a couple resistors, and the AVRs themselves usually cost between $2.00 - $5.00 and can be reprogrammed many thousands of times, so the price of admission is mostly just in time and effort. I'm starting to ramble here, so good luck with your arduino.

You are right about using BASIC to program PICs, as after you have written a few relatively complex programs you will begin to realise how making something overly simple isn't necessarily better and that is exceedingly limiting. However, for very simple or quick programs I do use a high level language called JAL. It is realtively undocumented, and I have posted some tutorials on my site : -

www.ax-elec.com

PICs also have a free compiler, and the most simple programmers can also be assembled with relatively few components. With PIC programming, assembler language is by far the best to program in as although it is low level it is definitely the most powerful and most supported at least 100 times over. Using MPLAB IDE you can ICD your software which I think is invaluable when writing bigger programs - I would like to see you do that with your os avr compiler  :taunt:

Can I ask you, what do you think the advantages of AVRs are?
« Last Edit: March 21, 2009, 11:19:08 AM by Alien_X »

Sigs by Alien_X
www.ax-elec.com

Offline Blizzrad

  • Chaos Lover
  • *
  • Posts: 267
  • Post quality +0/-0
Re: arduino anyone?
« Reply #13 on: March 21, 2009, 09:28:12 AM »
I think you partly answered your own question. For someone coming from working with the arduino and looking for more versatility, moving to working directly with the MCU they have already been using (albeit through some additional layers of abstraction) is more direct than switching to an entirely different line of MCUs with less support for the language they are already working in.

MPLAP is a great IDE, for AVRs there is an IDE called AVR Studio. I compile from the command line, so I haven't used either of these IDEs much, but both MPLAB and AVR Studio have built in simulation and debugging support.

Offline Alien_X

  • Club AM VIP
  • Millennium Poster
  • *
  • Posts: 1010
  • Post quality +3/-0
  • Gender: Male
Re: arduino anyone?
« Reply #14 on: March 26, 2009, 10:23:36 AM »
I just ordered a USBASP and several atmega 8s!
Can't wait to get to work using C instead of asm :)

Also, I think I finally have the hang of SPI & the Dualshock ;)

Sigs by Alien_X
www.ax-elec.com

Offline everywhere

  • Guppy
  • *
  • Posts: 1
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
Re: arduino anyone?
« Reply #15 on: June 15, 2009, 01:47:38 PM »
i have 2, i do robotics so it is very useful

Offline Hijax

  • Guppy
  • *
  • Posts: 4
  • Post quality +0/-0
  • Cake Eating Machine
Re: arduino anyone?
« Reply #16 on: July 12, 2009, 12:27:59 PM »
this arduino thing really starts to appear well worth having.
there's this:
impress - flexible display
made with the arduino.

so it seems you dont really need the more advanced microboards to do some kewl stuff.

Offline stonefoz

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
    • Hicklabs.com
Re: arduino anyone?
« Reply #17 on: August 28, 2009, 11:09:53 PM »


Can I ask you, what do you think the advantages of AVRs are?

Simple, for mearly a few cent's more, I can get a chip that is programed in a real language, with documents, and is fast enough I can ignore whatever speed difference I could ever obtain by using asm. If I write control software on the computer, most defiantly in c, the micro I'm writing to uses the same header files, all protocols are defined once, with fewer chances of error.

Jal is not a real language, it's just a serious of hacks and macros. I'd spend just as much time writing my own, as I would tracking down parser errors in that mess. It's just not worth the time dragging a decades old architecture out into the 21 century. Asm for the pic is a nightmare, being that the closest thing it mimics is the PDP11, which now can be found only in museums. One register on a non-stack based cpu, mangles between mis-mapped banks of both memory and "special" memory. It's a nightmare.

If I try to avoid asm, only c compiler for pic, the high-c compiler is only a free trial, severely limited, with costly updates, required for any newer chips produced. Meanwhile the avr is well supported by the GNU compiler, which is both standards compliant and always free.

The only constructive bit of criticism I can add, is with the arduino, it's a quick and easy way to have an avr system running, the idea of placing a bootloader in system is quite beneficial  while developing. However if any more than a few projects are going to be designed, the arduino doesn't pay for it's self. The dragon programer both programs and debugs any chip offered by atmel with less than 32k.
I think I cashed out all my cool points.

Offline W-Gaming5

  • Millennium Poster
  • *
  • Posts: 1129
  • Post quality +1/-0
  • Gender: Male
Re: arduino anyone?
« Reply #18 on: August 28, 2009, 11:51:20 PM »
:censored: :censored: :censored: :censored: :censored: :censored: :censored: :censored: :censored: :censored: :censored:
« Last Edit: July 29, 2012, 08:22:13 PM by W-Gaming5 »
:censored:

Offline 802Chives

  • Sargeant at Arms
  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1304
  • Post quality +10/-0
  • Gender: Male
Re: arduino anyone?
« Reply #19 on: August 30, 2009, 08:35:19 PM »
W-gaming5: If someone has something constructive to say they can bump any topic they want....  bumping an old topic with something like "this is cool,  someone make a me a tut" then feel free to tell them to buzz off.

Stonefoz: welcome and thanks for the post.


Offline ryan0

  • I EAT STUFF
  • Millennium Poster
  • *
  • Posts: 1128
  • Post quality +0/-0
  • Gender: Male
  • I LIEK CHEEEEZE
Re: arduino anyone?
« Reply #20 on: October 09, 2009, 12:12:23 PM »
I have a few arduino's but I prefer the BASIC stamp,personal preference I guess...
Derp.

Offline koldkiller

  • Motor Mouth
  • *
  • Posts: 83
  • Post quality +0/-0
  • Gender: Male
Re: arduino anyone?
« Reply #21 on: October 09, 2009, 12:21:52 PM »
I am planning on getting one of the advanced starter kits from makershed.com. Is it really worth it?

Offline ryan0

  • I EAT STUFF
  • Millennium Poster
  • *
  • Posts: 1128
  • Post quality +0/-0
  • Gender: Male
  • I LIEK CHEEEEZE
Re: arduino anyone?
« Reply #22 on: October 10, 2009, 04:08:51 AM »
if you want to buy an arduino buy this:
http://cgi.ebay.com/Arduino-Mega-AVR-ATmega1280-USB-board-Shipping-FREE_W0QQitemZ280407626386QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item414998d292&_trksid=p3286.c0.m14

That chip is extremely powerful and has more i/o's than you could ever dream of,plus you won't find a better price,bought mine from that dude.
Derp.

Offline koldkiller

  • Motor Mouth
  • *
  • Posts: 83
  • Post quality +0/-0
  • Gender: Male
Re: arduino anyone?
« Reply #23 on: October 10, 2009, 12:56:29 PM »
if you want to buy an arduino buy this:
http://cgi.ebay.com/Arduino-Mega-AVR-ATmega1280-USB-board-Shipping-FREE_W0QQitemZ280407626386QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item414998d292&_trksid=p3286.c0.m14

That chip is extremely powerful and has more i/o's than you could ever dream of,plus you won't find a better price,bought mine from that dude.

I was looking for more like a kit with the proto shield. Anyone have a good link to that?

Offline Hazer

  • x4675636B4E7574
  • Acidmods Alumni
  • Acid Modder
  • *
  • Posts: 583
  • Post quality +59/-0
Re: arduino anyone?
« Reply #24 on: October 11, 2009, 05:36:29 AM »
Just my two cents:

The difference between ASM and higher level is like the difference between a Hummer (military version) vs a Landrover. The Hummer (ASM) is a no bells-and-whistles vehicle that uses manual controls in order to drive it, while the Landrover (C, ardiuno, etc) is the expensive, over-the-top features that takes away all of the necessary skill in order to drive it. If you set the cost the same, the Lanrover looks more appealing, but you get decieved. In real world conditions when you need a true all-terain vehicle, the Hummer was designed for use by people who rely on it with thier lives, while the Landrover was designed to make people who may never even use it as an all-terain vehicle believe they can match the same performance in real-world conditions ....and are falsely misled. In the same way these two vehicles perform under the circumstances they claim to be made for, the processors are the same as well. Its great to say that this one is better than that one when all you are doing is some simple LED flashing or canned communication routines. But the same is not held true when dealing under more extreme conditions when you need a design that handles multi-variable environments and redundancy and error-proffing are a requirement. Yes, that may not be the goal, but the projects mentioned earlier that require a little more design effort were not made in a single day. The higher the level language, the eaier it is for non-seasoned coders to program themselves right into a corner, trying to figure out why thier code will not work when the logic behind it is flawless. Without decades of experience behind the architecture and how the higher-level languages manipulate the instructions, people get 'stuck' very easily and literally have no other option other than to start from scratch.

I understand people consider the Harvard architecture and ASM to be difficult. Well, it is. It requires skill and intimate understanding of the architecture and hardware. But with that you gain full control over your design. And while everyone keeps bashing the multi-bank memory they always 'skip' the reason why it was designed in the first place: The Harvard Architecture is the only processor that executes instructions in single-cycles. And if you cannot understand why that is so important (important enough to gain half the market over the aging Motorola architecture) then there is no reason to exlplain it.
[Quote from Gamermodz via Viking forums]
Don't be jealous your not half as smart. I hate ****tards like you. An ignorant redneck. Your nothing but a posing ******. Get the **** out of here, really, your claim to fame is an open source rapid fire code? You make me laugh. You think you have control over the modding market?  You couldn't create what I can and do. You are too ignorant with your outrageous assumptions and accusations. [/Quote]

Offline stonefoz

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
    • Hicklabs.com
Re: arduino anyone?
« Reply #25 on: October 11, 2009, 03:29:37 PM »
wtf?
Landrover? Hummer?
Ok.. C is like the Landrover and Asm is like a set of Nike's. Both will get you to Albuquerque, assuming you have a map. Neither is going to keep you from getting lost, but for the price, I'll ride with the air conditioning, while Hazer and walk the next thousand miles, :censored:ing how it's utilitarian.

It's not as if with in C, at any time, one can call asm procedures if it's needed. I'll have to say I've only had need to do so one a handful of occasions.

I'll still suggest that the Ardino is a slick platform will a helpful community to get you going. It is pricey to make more than a few projects, so perhaps getting a regular programer would be desirable in time. Ardino has chip, power, and programmer all on one card.

I fail to see how the language would influence anyone to be "backed into a corner". Pure fearmongering, without any evidence to back. Asm requires advanced study of the chip to be programed, just to do simple arithmetic. Meanwhile "x=2+2" works for any c compiler and only requires study of the chip's hardware that would be utilized, cutting required study by magnitudes. I fail to see how letting the compiler decide how number get added would "back me into a corner".

Anyway, Pic and AVR both have a Harvard Architecture, however the PIC also has banked memory within that. Yet again a false argument from our friend Hazer. And please explain why it would be necessary... It's only purpose is to speed up the processor given a set price. It's at a cost of complexity, with if handed correctly, does not imped development. Hardly a detail than needs to be waved for simpler tasks.


 
I think I cashed out all my cool points.

Offline koldkiller

  • Motor Mouth
  • *
  • Posts: 83
  • Post quality +0/-0
  • Gender: Male
Re: arduino anyone?
« Reply #26 on: October 11, 2009, 05:11:21 PM »
Okay this thread is starting to get a little confusing with hummers and land rovers and :censored:.

I need a good advanced starter kit. Any links?

Offline stonefoz

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Gender: Male
  • Acidmods User
    • Hicklabs.com
Re: arduino anyone?
« Reply #27 on: October 11, 2009, 05:47:17 PM »
Much more simple,
Arduino board, there is a dozen places to pick one up. I order from sparkfun.com, but I'm sure there's somewhere cheaper.

Simple board, has a chip, and a programer build-in. It's all less than $20USD.

It's best for simple and staring out, as it comes with a program already on the chip that allows it to update it's self.

Arduino is the program and basic design for the simplest chip to get working with.

As for writing software, winavr.sourceforge.net has a assembler, c compiler, and programing tools for it. Atmel makes the chip and at Atmel.com, they have the official assembler and a simulator for them, no compiler.

Check out Arduino.cc, it has some rather easy to follow examples.
I think I cashed out all my cool points.

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal