I am planning to get an Arduino soon, and I was wondering if any one have any tips in learning it or how to preserve it so it doesn't just stop working.
I am planning to get an Arduino soon, and I was wondering if any one have any tips in learning it or how to preserve it so it doesn't just stop working.
>how to preserve it so it doesn't just stop working.
are you a retard?
don't short VCC to GND
don't short pins (input or output) to VCC or GND, use resistors
use resistors for LEDs
>tips in learning it
-2. learn C and C++
-1. learn low level memory management, C-strings, pointers
0. install Linux
1. install Arduino IDE
2. program some sample things
3. ???
4. PROFIT!
>Install Linux
It's a microcontroller not a SBC
He clearly meant installing Linux on the computer you're working from. It's good advice in general for writing software.
>don't short pins (input or output) to VCC or GND
you can short input pins to vcc/gnd
input pins have high impedence. just dont short them to voltages higher than vcc (or lower than gnd)
LULZ has a general for stuff like this, and they're nicer
I like the harshness its more real you know what I mean
but Ill ask them next thou
Use platformIO
platformio.org
Don't plug it in with a coin over the diodes and you should be fine, did this once with my esp32 and it expeled the magic smoke, somehow it still works.
>magic smoke
>it still works
is this the power that you're bestowed upon once you become a wizard?
yes, but you have to make sure you breathe in the magic smoke or else your chance goes away
> Realizes that you're not supposed to let the smoke out
Impressive.
you won't learn anything from it you blinking led homosexual
chinese uno ripoffs are perfect for 99% of uses of an arduino and cost next to nothing. you can get big ass arduino kits with lots of other stuff you can put on a breadboard and experiment with for very cheap these days.
get a big 'arduino kit' from aliexpress and 1-2 extra arduinos (all ripoffs not originals) and fuck around with those.
here's the manual for a kit whose early version i bought many years ago
https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-experiment-guide---v41
if you finish all the projects it gives you you can get into other controllers like esp32 (has wifi and can host webpages , can input camera feeds, shit like that)
i recently got one after not touching them for years since i got a kit to control servo motors with an arduino ,same sort of motors you have on a 3d printer, theyre much stronger than i expected.
i wanna use em to build some general purpose tilt pan/turret thing for fucking around mostly
>chinese uno ripoffs are perfect for 99% of uses of an arduino
Pretty much this. The one time I had one that was just fucked it didn't matter because it cost nothing I buy a bundle for the same prices as one actual arduino.
just fucking play with it and buy another if you manage to break it (impossible)
The only thing you should be scared off is that you do nothing with it, thus learn nothing.
Don't do too many uploads. These allegedly have a life span of 10k writes. The clones have a lot less, but maybe I was just unlucky.
The smaller version, Arduino Nano, might be better. For one Uno you can get 3 Nanos. You can use the Nano on a breadboard so much less jumpers needed.
>Don't do too many uploads. These allegedly have a life span of 10k writes. The clones have a lot less, but maybe I was just unlucky.
eh who cares, those things are dirt cheap
I would recommending using VSC over the default sketch app
more complicated to setup but not by much, and it's more noob friendly than sketch
>how to preserve it so it doesn't just stop working
Treat it like a lady and take it out to dinner every now and then.
Tell it it's performing particularly well when they're having a rough day.
Cuddle it sometimes.
I do all of this and not once has any Arduino given up on me.
>how to preserve it so it doesn't just stop working.
>what the fuck is an anti-static bag?
>don't short pins (input or output) to VCC or GND, use resistors
check the datasheet for maximum current at any pin, normally something like 20/40mA
some people have an idea this means the pin will only supply 20mA, it actually means you can very easily draw more than 20mA but it will harm the silicon, the more it happens and the further over the limit you go the worse it gets and once you start it off it gets worse by itself too until the circuit inside shorts onto something else and its fucked.
but really arduino is dogshit aids, the software for dev is unusable garbage its an awful compromise between a simple notepad with highlighting and a full env and gets absolutely nothing right and im sure its made in java (looks like it is anyway)
the hardware is also awful and all the bay area startups that sell you a 2$ ic on a breakout board for 10x markup are demonic lizard entities.
if you want to learn anything, get any other platform.
if you have zero brain, have too much money, and cant follow wiring diagrams, only pictorials, can't write code can only import libraries, arduino is perfect for you
inb4 gcc support
the serial console is useful but its not worth bypassing learning anything at all about embedded ic lifecycle, programming, registers, fuses etc.
then again with stuff like esp and raspizero (LOL) embedded as it was in its prime (90s-10s) is pretty much dead
before the thread close wanted to say thank everyone for the advice
one time i plugged an attiny85 the wrong way into my DIY programmer
nothing happened to it
If you don't already have a stash of arduinos, I highly recommend getting a Raspberry Pi Pico instead (or at least as well). Similar price, far more powerful in every way, and compatible with the arduino ecosystem if you still want to use that.
Or just any ARM Cortex M0, the RasPi version is probably going to be the most prieciest.
Also, the Arduino UNO is just a generic ATmega328P, it's not programmed with "C alike" it's programmed with straight C the Arduino IDE repurposes for you.
If you skip void setup() and void loop() and just use int main(), the Arduino IDE becomes nothing more than an interface to upload C code to an ATmega328P.
Main problem with the Pico is there are way less libraries for it compared to Arduino and most of the libraries are in Python. You can't really take advantage of the higher specs when the common language used for it is Python.
Arduino runs on Picos, so you can use Arduino libraries (except for the few that specifically target AVRs and don't support other MCUs)
Get the big packages that have motors, wires, sensors and a lot of other shit in them. They're dirt cheap and you can reuse all of it for future project.
Then, move on to esp32 that are cheaper and do the same job.
You can either buy the whole development kit or just buy the individual parts. Either way, you will need the board itself (doesnt have to be uno. nano will be fine), a bread board, some male to male jumpers, some leds, some resistors and some capacitors. In case of nano or similar boards you will most likely need to solder the pins manually, so in this case consider getting a decent soldering station (would recommend OSS T12X) and some solder (get one with lead. solder without one sucks).
As long as you will not short certain pins and use proper resistors, you should be fine. If you need any additional modules, just order them separately. Good luck and have fun!
Also, make sure to check the voltage on that soldering station, since it might output 90V , which we dont want ( its a common factory fault). You can fix it with a piece of ground wire connected internally.
Yay or nay?
I'm considering using one for a project. I wonder if the supposed low perf/$ of risc is actually because of the hardware or if it's the low quality compilers? I haven't actually looked into that too much but I do know most C compilers output terrible riscv code.
It kinda makes sense that risc would be slower since it might need a lot of cycles to do something that other chips have specialized instructions to do instantly.
But afaik no one has made a high power riscv chip yet for comparison
That's not really how modern CISC work, instead they use microcode over a pretty small instruction set. The cycle count should be about the same on that basis.
Compared to what? ARM micros?