2 posts were split to a new topic: Arduino + Servos
Hi Folks,
Brilliant Arduino Workshop for Beginners series. Very well put together!
Cheers,
Ian
Hi. This is a great set of tutorials, and in the current quarantine situation, my students are getting a lot out of the videos. Thank you very much.
We noticed there was a slight bug in 5.2 Using SPI. The first line of the example code should read #include <SPI.h>.
Cheers
Ryan
Hi Ryan,
Thanks for the tip. Iāll add it to the list of edits to make to the site for the next update. Have a great day!
Bryce
Core Electronics | Support
Will the remaining chapters from chapter 6 be added to this page? Or are they located at another location?
Oooh thatās new. Looks like theyāre in the works.
Thanks a lot for this course , that really helped me a lot sir !
I have a quesiton
How to develop a code to generate Fibonacci numbers until values less than 1023 (2^10 -1). (first 17 number in the sequence) using arduino ?
Thanks a lot for this course , that really helped me a lot sir !
Hey Menna,
The algorithm for generating fibonacci numbers is pretty simple: F_+1 = F + F_-1
Calculating the nth fibonacci is a good chance to explore recursive functions
Hey Menna,
Welcome to the forum!
To take this even further Iād take a look at the Binet formula and calculation of the nth digit of fibonacci as a function, you may find it useful/interesting for your project.
https://mathworld.wolfram.com/BinetsFibonacciNumberFormula.html
Best of luck with it! Please let us know if you have any questions.
I get a message when i click on the video button on the page. See below, āEr is een fout opgetreden. Probeer het later opnieuw. (Afspeel-ID: qXzhB7OD0kH-k5II)
Meer informatieā When go tho yutube and select your video i donāt have a problem.
By. Paul Guliker (Dutch)
The videos work for me A screenshot of the error might help
Hi Paul,
Welcome to the forums
Hmm, after running it through google translate itās just saying āAn error has occurred. Try again later.ā Iāve just double checked and itās working on our end - might be something temporary or just an issue with your local network.
Does a Ctrl+F5 refresh fix it for you Paul?
Hi Oliver,
2day the hyperlink to the video works fine.
So the problem is solvent i guess.
Thank you for your reaction.
Paul
Hi, I need to know how can we print the value in Serial Monitor of the program Blink Rate Control?
Hi Krishnaprasad,
Getting the serial monitor connected would be as simple as using this code instead:
int ledPin = 3;
int potPin = A0;
void setup() {
// setup pin modes
pinMode(ledPin, OUTPUT);
pinMode(potPin, INPUT);
// Initialising the Serial output with a baud of 9600 b/s
Serial.begin(9600);
}
void loop() {
// read the value of the pot and store it as potValue
int potValue = analogRead(potPin);
// turn led on and wait for the time equal to potValue
digitalWrite(ledPin, HIGH);
delay(potValue);
//Printing the value of 'potPin' every loop (the values will range between 0-1023 as the Arduino uses a 10-bit ADC i.e. 2^10 = 1024)
Serial.println(potPin);
// re-read the value of the pot and store it as potValue
potValue = analogRead(potPin);
// turn led off and wait for the time equal to potValue
digitalWrite(ledPin, LOW);
delay(potValue);
}
If you want to know how particular parts work let us know!
PS: hereās a link to the serial functions within Arduinoās IDE
Liam
Hi in the Functions tutorial is it possible to make a function at last just from printing the value and then call it on the loop?
Something like this?
int ledPin = 3;
int potPin = A0;
void setup() {
// setup pin modes
pinMode(ledPin, OUTPUT);
pinMode(potPin, INPUT);
// Initialising the Serial output with a baud of 9600 b/s
Serial.begin(9600);
}
void loop() {
// read the value of the pot and store it as potValue
int potValue = analogRead(potPin);
printIt(potValue);
// turn led on and wait for the time equal to potValue
digitalWrite(ledPin, HIGH);
delay(potValue);
// re-read the value of the pot and store it as potValue
potValue = analogRead(potPin);
printIt(potValue);
// turn led off and wait for the time equal to potValue
digitalWrite(ledPin, LOW);
delay(potValue);
}
void printIt(int val) {
Serial.println(val);
}
Hi guys,
I just wanted to say thanks for an incredibly useful and well-presented tutorial course.
I had spent days online trying to work out how to approach programming my project, and I was becoming quite disheartened until I found this course. Itās just what I needed.
Best wishes
Simon
Hey Simon,
Glad you enjoyed it! It got me started quite a few years back too - Sam did a great job