Actually I am looking at ATMEGA328 from your advice in post #7 as one of the two possible choice. I have not even looked into how to program them yet.Hi,
I really wonder why you continously ask for simplicity, mention soldering issues, are worried about C++.
While you don't comment on Arduino ... which in my eyes solves all these problems.
It's simple to start with. My cousin is carpenter without any electronics or programming knowledge and is able to do Arduino projects.
It supports several microcontrollers from several brands ... from small AVRs... up to dual core ARM based 240MHz ESP32 with WiFi .., even for WEB applications.
A huge community with tons of videos for every problem. An easy start with existing hardware and existing software.
If you start with Arduino you are not bound to arduino, neither the boards, nor the IDE.
Klaus
for first tests: nothing to solder. Already soldered on board. Connect it with an USB cable to your PC. Done.that is easy to handle at home(soldering),
Why? If you can handle one AVR you can handle all AVR. Programming will be the same. Assembler will be the same. They just come with different packages, different pin count, different periferals... this all is one familiy.I am just hoping to nail down to one particular chip first
Yes. I strongly recommend to watch some "beginners tutorial video" on youtube.I have not looked into Arduino, is it like a compiler that you write program in C++
And this is the level Arduino is made for.this is the level I am at!!!
Relax. Don´t stress yourself. If you start with Arduino from the scratch .. buy some Arduino Uno board.Now I am paying the price because I have nobody to throw to anymore!!!!
This is why I wonder.... I´ve already told you (several times?) ... the answer is: yes.Can I use Arduino for ATMEGA328? Can I use C++?
Hi KlausHi,
Don´t get me wrong. I don´t get paid from Arduino. And I´m not the one who is focussed on Arduino or does recommend Arduino for professional use. But I think in your case it´s the best to start with.
I´m commenting on Arduino:
for first tests: nothing to solder. Already soldered on board. Connect it with an USB cable to your PC. Done.
Should be available.
Why? If you can handle one AVR you can handle all AVR. Programming will be the same. Assembler will be the same. They just come with different packages, different pin count, different periferals... this all is one familiy.
And further:
If you can program a microcontroller with C++ then it´s not a big deal to program a completely different microcontroller (family, brand) with C++. The compiler will do the main job to adjust to the microcontroller.
For sure there is difference. But with C++ (or any other higher language) changing the microcontroller it´s by far not that complicated as with assembler. That´s why we have languages like C++ .. ..
Yes. I strongly recommend to watch some "beginners tutorial video" on youtube.
Arduino is made for beginners, for non professionals. You immediately have the feedback of success.
And if you later want to step to soemthing more professional... you even may use parts of your code and the existing hardware.
And this is the level Arduino is made for.
Relax. Don´t stress yourself. If you start with Arduino from the scratch .. buy some Arduino Uno board.
Then install the IDE, watch some tutorials how to do this all and I´m sure you do your own program within maybe two hours (maybe wihtin one hour). For sure on the same day. No need to read through the 300 pages datasheet. Start with existing code examples, modify it, play around. Have fun.
For simple project there is no need to read datasheets at all. Others did this for you, wrote libraries, wrote examples, did videos...
Try (just now) a youtube search for "first arduino uno project" or "arduino uno blinking led" .. or whatever you are interested in.
Later .. if you want to dive deeper in AVR periferals, connecting devices, optimize code for your needs ... you will need to read datasheets.
This is why I wonder.... I´ve already told you (several times?) ... the answer is: yes.
"Arduino Uno" uses ATmeag328. (Indeed you don´t need to care for first projects)
And it uses "some kind of" C++. (But I´m not able to explain the differences to "true" C++.)
++++
You will lose nothing. Arduino IDE is free to use. you may use Arduino boards with any compiler, even assembler if you like.
Again: I´m not a friend of Arduino for professional use. But it opens a huge variety of applications . even for beginners. Bluetooth, WiFi, Web controlled applications, color graphics displays, controlling steppers or even a complete CNC milling machine... all can be done within hours.
Klaus
I see you already did an internet search on your own.What is Arduino UNO board?
Hi,
While I agree with most of the last two posts...
( as arguments that Arduino is more for hobbyist and not professionals)
I don´t think that "open source" is bad at all.
Let´s consider LINUX as an open souce OS and Windows as non open source OS.
Then you see pros an cons for each system.
Here some pros of the open source system:
Linux is non commercial. Linux is more secure (regarding virus and other attacks). If there is a safety issue, then there are many developers to find and fix the problem. This is fast.
While you need to pay for Windows, it is slow in fixing safety issues, and maybe with solving the one problem they create a new problem.
But still I pay and use windows.
I would say one of the biggest advantages of Arduino being open source is that it evolves extremely quickly. A huge community provides solutions. Maybe not the most sophisticated solutions, maybe not the most tested solutions, but many hobbyists can live with it.
Klaus
Should I get the first one because it actually uses the ATMEGA chip you suggested, or it doesn't matter? I like the more expensive one, I want to see whether I can play with my 16 years old grand daughter. She's a straight A student and got student of the year before.Hi,
I think both are worth the money.
(ten years ago you had to pay at least 5 times that much, buying each part seperately)
And the kits come with a CD, with libraries, documentation, datasheets and code examples.
A lot of stuff to become creative. Try this, try that, have fun. Easy learning.
Klaus
I can't wait for the kit to arrive. I read a little on Arduino, sounds like it's very similar to C++ but it's simpler. To be honest, I really don't have the feel of this so far, hopefully when I go through the tutorial of the kit, I have better understanding.As has been said before, don't get hung up by the specific chip on whatever board you have.
The key thing is that it is 'Arduino' compatible which means that everything after your C/C++ code is taken care of for you.
(By that I mean, if you change to a different board and/or different chip then all you need to do is tell the Arduino IDE that you have a new board - there is a pull-down list that lets you simply select the one you have - and it will then select the right tools for the board for you. After that it is still the same 'compile, upload and run' cycle.)
Think of it a bit like a car - they all have a steering wheel, accelerator and brake (at least for now!!!) so once you know how to drive you can drive (almost) any car. Any specific make and model of car might have a different body, engine and options but driving is still the same.
Susan
Oh no, I am not trying to use Python, I read that Arduino uses a simplified version of like C++ and is very easy to learn, I am thinking maybe my grand daughter can learn it too. I really don't feel like learning Python.Hang on a sec - Python can run on some of the same devices as the Arduino framework but they are different beasts.
For a start you are probably looking at a version of MicroPython rather than the full-blown Python that you would have on your PC. You will need to find a version of MicroPython that runs on your MCU. The ATMega328 is an 8-bit MCU.
Given your stated level of experience it would say you need to stay well away from any version of MicroPython that requires you to compile your own copy. Rather, MicroPython is readily available on nearly any ESP8266 or ESP32, Rapberry Pi Pico and a number of other devices.
If you want to learn about micorcontrollers then start with the Arduino.
If you want to learn Python with your granddaughter then start on your PC.
Susan
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?