So, I've got a background in webdesign, 3D design, and assembling 3D printers, however, I know nothing about how to use an arduino.
That being said, I've got a couple running things like Octoprint, however, each time I set those up, I simply followed instructions not knowing what each step is doing.
I have some downtime due to the lockdown and really want to learn programming starting with the arduino. I was looking at this kit, Adventure Kit: 30 Days Lost in Space – InventrKits. However, I thought finding good beginning tutorials and lessons would be better and then just buying what I need.
I looked through the tutorial section here, and it's overwhelming. Could someone point me in the right direction on where to start? A youtube series, book, or something similar? Something that just starts with the basics.
Seeing all the things you can do with it just makes me want to do it more!
Looking forward to this forum and opening a new world!
boolean (8 bit) - simple logical true/false, Arduino does not use single bits for bool
byte (8 bit) - unsigned number from 0 to 255
char (8 bit) - signed number from -128 to 127. The compiler will attempt to interpret this data type as a character in some circumstances, which may yield unexpected results
unsigned char (8 bit) - same as 'byte'; if this is what you're after, you should use 'byte' instead, for reasons of clarity
word (16 bit) - unsigned number from 0 to 65535
unsigned int (16 bit)- the same as 'word'. Use 'word' instead for clarity and brevity
int (16 bit) - signed number from -32768 to 32767. This is most commonly what you see used for general purpose variables in Arduino example code provided with the IDE
unsigned long (32 bit) - unsigned number from 0 to 4,294,967,295. The most common usage of this is to store the result of the millis() function, which returns the number of milliseconds the current code has been running
long (32 bit) - signed number from -2,147,483,648 to 2,147,483,647
float (32 bit) - signed number from -3.4028235E38 to 3.4028235E38. Floating point on the Arduino is not native; the compiler has to jump through hoops to make it work. If you can avoid it, you should. We'll touch on this later. Sparkfun.
You select the 'type' best suited for your variables.
ex:
your variable does not change and it defines a pin on the Arduino. const byte limitSwitchPin = 34;
since an analog variable can be 0 to 1023, a byte will not do, you can select 'int'. int temperature;
if your variable needs to be within -64 to +64 a 'char' will do nicely. char joystick;
if your variable is used for ASCII then you need type 'char', char myText[] = {"Raspberry Pie Smells"};
if your variable enables some code then boolean can be used. boolean enableFlag = false;
millis() returns the time in ms since rebooting, unsigned long currentTime = millis();
etc.
vicfrankenstein:
I have some downtime due to the lockdown and really want to learn programming starting with the arduino. I was looking at this kit, Adventure Kit: 30 Days Lost in Space – InventrKits. However, I thought finding good beginning tutorials and lessons would be better and then just buying what I need.
It's going to be difficult to learn without at least one Arduino to practice with. Buying a few extra parts such as LEDs (and their resistors) and maybe a servo would allow you to do a fair bit of experimenting. A low cost kit might be the simplest way to acquire an initial selection of parts.
Lots of simple example programs are included with the Arduino IDE.
Some people like to learn by exploring examples and then finding explanations of how they work and other people like to follow a formal "education" course. Which type are you?
I'm not sure which type of learner I am. I've done both, classes and learning out of necessity. The only thing about the arduino is I don't know all it can do, so I'm not sure what to learn. That's why I wanted to start at the beginning with the basics.
I've actually got a couple of unused Arduinos. I've bought them for various reasons, but they aren't being used now. However, each time I used them for these things, I just followed an instructional video and didn't learn anything except how to follow instructions.