Thank you for the advice and help. What Confuses me a little is what processors or IC's are used in the Arduino. Is this similar to A PIC microprocessor. Once you program the chip you take it out and build it permanently into your circuit.?Hello,
The choice of an Arduino board depends on what you want to do and how many I/O pins you need.
The wiki has some nice pages with information:
https://en.wikipedia.org/wiki/Arduino
https://en.wikipedia.org/wiki/List_of_Arduino_boards_and_compatible_systems
There is also the official Ardiuno website with a lot of information:
https://www.arduino.cc/
Bertus
The Arduino is programmed on board. It is like the scenario you describe. Once the Arduino is programmed, the sketch (what Arduino calls its program) remains until another sketch is loaded onto the board.Thank you for the advice and help. What Confuses me a little is what processors or IC's are used in the Arduino. Is this similar to A PIC microprocessor. Once you program the chip you take it out and build it permanently into your circuit.?
Yes, that is the way. And yes, they are expensive. For a less expensive alternative, consider PICAXE microcontrollers. www.picaxe.comOne thing I still don't understand,
Once I have built a project and want to make it permanent do I buy a ATMEGA328P-PU and then program the software into it and build it on a separate board.
They seem to be very expensive and what if you don't need as many inputs and outputs? I just cant seem to find the answer.
IMHO, the answer to your question is no. The Arduino has certain hardware and software assumptions in it, that simply buying an ATMEGA328P is not going to resolve for you.One thing I still don't understand,
Once I have built a project and want to make it permanent do I buy a ATMEGA328P-PU and then program the software into it and build it on a separate board.
They seem to be very expensive and what if you don't need as many inputs and outputs? I just cant seem to find the answer.
No.One thing I still don't understand,
Once I have built a project and want to make it permanent do I buy a ATMEGA328P-PU and then program the software into it and build it on a separate board.
They seem to be very expensive and what if you don't need as many inputs and outputs? I just cant seem to find the answer.
IMHO, the answer to your question is no. The Arduino has certain hardware and software assumptions in it, that simply buying an ATMEGA328P is not going to resolve for you.
The Arduino is a complete development platform. It is one of its greatest strengths and greatest weaknesses at the same time. You have control over a variety of hardware and software, but are limited to the configurations available. AFAIK, once you develop your software on an Arduino, it must run on an Arduino. If you want to program chips with your software without the additional overhead on an Arduino - then you need to bite the bullet and develop with the processor on its own, buiding your own supporting board and possibly writing your own sofware libraries to interface with such things as serial comms, servos, storage, displays etc... An advantage of the Arduino is that many of these software libraries are already available. If its just cost, there are Arduino closes available for less cost, but your milage may vary.
the atmega 328 has an 8MHz internal oscillator and there is an Arduino Board definition for making use of this.No.
ATMEGA328P by itself does nothing. It requires supporting circuit. For example:
- it needs a crystal to provide the clock signal, which means you need crystal and two capacitors
- it needs another chip to provide communication from pc (via USB) to ATMEGA328P, this chip needs its own circuit
...
That is part of my point. OP DOES NOT have programmer.This is not true, I have done exactly as the OP suggested, develop on Arduino and then use a bare atmega 328 on a board to run exatctly the same code. All Arduino provides as far as hardware goes is a voltage regualtor, a USB-serial interface and an LED (on some boards) connected to PIN 13. Additionally the Adrunio hardware is open source so you can copy the parts of the design you need to build your own.
the atmega 328 has an 8MHz internal oscillator and there is an Arduino Board definition for making use of this.
A USB-serial chip or bootloader is NOT needed if you have a programmer, you can just load your compiled Arduino binaries on to the bare atmega. An Arduino can BE USED AS A PROGRAMMER, - https://www.arduino.cc/en/Tutorial/ArduinoISP or you can buy somehting like a USBTinyISP.
There is an awful lot of misinformation about Arduino out there...
That is part of my point. OP DOES NOT have programmer.
Also that banggood website has chips with bootloader, which is good. You can use it to build your own board with just the features you need/want.
Another d'oh moment. I knew that about the IDE - just conveniently slipped my mind.It's simpler than you think, you don't have to get the program off the Arduino because the Arduino IDE runs on your PC and that is where you developed and compiled the program so the binary file is already on your PC.
All the Arduino IDE is is an editor and compiler. It comes bundled and preconfigured with AVRDude which sends compiled binaries over serial to some device, that device can be an atmega running a bootloader or a programmer of some sort including an Arduino running ArduinoISP (what ArduinoISP does is essentially to read data from the serial input and send it out over the SPI interface) .
The atmega chips are programmed via SPI while holding the reset pin. So you just need to connect the SPI lines on the target chip, control it's reset pin and obviously provide power. There is a fairly standard 6 way cable for doing this but it is perfectly possible to just jumper it in on a breadboard for example.