Ma’am…. I have watched sooooo many tutorials on arduino and they’re either soo dry and boring, to fast too slow but this… THIS, is the first time I actually understand and can follow! Can’t wait till the next vid!
I have been using joysticks for 8 yrs and just released there's an x and y next to the vr, wow i feel dumb, so much for that Stanford Engineering degree from 1992. WOW, i always play your videos in my workshop in the background, since i'm very retired now, and i had to go back and see that.
I'm recent college grad, and I really like your channel! Now that I'm out of school, I need little projects to occupy my free time, and your channel has been so helpful for that 😊
Just found your channel and instantly subscribed. Great explanations, great energy, and you're fun and I instantly like you. Well done, my (new) friend!
Great Video! I just need help with the button. When the Button isn't being Pressed it says 487 and when its Pressed its 486, Sometimes the button value varies with the position... How do I Fix that?
Great explanation Rachel. I am getting a Switchstate reading of Zero. Pressing on the joystick changes to 1. Have called up digitalWrite(Switchpin, HIGH); Any ideas? Cannot see the error. Thanks, Ben
My ESP32 S3 didn't accept 5v "logic" reads with this type of model (I don't know if it's different) and pulled those to 0. I gave it much less and it's working now.
There is a compilation error due to the switchPin variable not being declared. To fix this, you should declare the switchPin variable at the beginning of the code just like xPin, yPin, and buttonPin. Additionally, there is a minor typo where buttonState is used instead of switchState' Regards. Here is the corrected code: int xPin = A0; int yPin = A1; int switchPin = 2; // Declare switchPin variable int xVal; // Variable for storing joystick x values int yVal; // Variable for storing joystick y values int switchState; // Variable for storing joystick switch state void setup() { pinMode(xPin, INPUT); pinMode(yPin, INPUT); pinMode(switchPin, INPUT_PULLUP); Serial.begin(9600); // Initialize the serial monitor } void loop() { // Read the x, y and joystick switch values xVal = analogRead(xPin); yVal = analogRead(yPin); switchState = digitalRead(switchPin); // Corrected to use switchState // Print readings to the serial monitor Serial.print("X: "); Serial.print(xVal); Serial.print(" | Y: "); Serial.print(yVal); Serial.print(" | Switch: "); Serial.println(switchState); delay(100); }
Why don't you use VREF to grt an accurate reference for the analogs? As you have it now you will get different analog values if you add some loads to VCC.
It is "cleaner" to perform a single "Serial.printf("X: %i | Y: %i | Button: %i ",xVal,yVal,buttonState);". It's not important in this case because you don't really care about timings (you even put a delay(100)!), but the story is slightly different when you're triggering interrupts (especially with the button). By the way, is your button debounced, or is it "raw"?
I have an issue. My joystick is reading 0 to 1 in the y axis, instead of 0 to 1023, I have an issue in getting the mid-point for my mapping. what Should i do ???
Ma’am…. I have watched sooooo many tutorials on arduino and they’re either soo dry and boring, to fast too slow but this… THIS, is the first time I actually understand and can follow! Can’t wait till the next vid!
You are such a natural and effective teacher! I am FINALLY understanding Arduino. Thank you SO much!
Best day ever, new Arduino video from Rachel!
Woohoo! 🥳
ESP32 HOW TO USE MOUSE AND KEYBOARD ON MOBILE @@RachelDeBarrosLive
I have been using joysticks for 8 yrs and just released there's an x and y next to the vr, wow i feel dumb, so much for that Stanford Engineering degree from 1992. WOW, i always play your videos in my workshop in the background, since i'm very retired now, and i had to go back and see that.
You are such a great lecturer, tutor and mentor. I need to learn Arduino!
I'm recent college grad, and I really like your channel! Now that I'm out of school, I need little projects to occupy my free time, and your channel has been so helpful for that 😊
Rachel, you are a gem. You describe everything so well and still inject some warmth and humour. Well done. Jeff in Australia
Thanks a lot for the precise delivery of concepts with jovial teaching methods.
This is wonderful. Giving me so many possibilities ❤
🥳 Awesome!
About time you did another arduino lesson! 😂😂
Just found your channel and instantly subscribed. Great explanations, great energy, and you're fun and I instantly like you. Well done, my (new) friend!
This Turorial is great and so interesting. Thanks again for another smart Arduino programing video.
I am really enjoying your Arduino video's
Awesome - let me know if there's any topic you'd like me to cover!
Works like a Swiss watch, thanks for the instructions. 👌
Very good. Lotsa detail that I need. Thank you
Great job Rachel
Brilliant! Cheer mate 🙏🏻
this is amazing good work keep going
Great work as usual, your amazing 👏 ❤😇👍
Great Video! I just need help with the button. When the Button isn't being Pressed it says 487 and when its Pressed its 486, Sometimes the button value varies with the position... How do I Fix that?
Nice explanation
Thanks and welcome!
The GOAT 😔😔🙏🙏
So great 👍
Great explanation Rachel. I am getting a Switchstate reading of Zero. Pressing on the joystick changes to 1. Have called up digitalWrite(Switchpin, HIGH);
Any ideas? Cannot see the error. Thanks, Ben
My ESP32 S3 didn't accept 5v "logic" reads with this type of model (I don't know if it's different) and pulled those to 0. I gave it much less and it's working now.
There is a compilation error due to the switchPin variable not being declared. To fix this, you should declare the switchPin variable at the beginning of the code just like xPin, yPin, and buttonPin. Additionally, there is a minor typo where buttonState is used instead of switchState' Regards. Here is the corrected code: int xPin = A0;
int yPin = A1;
int switchPin = 2; // Declare switchPin variable
int xVal; // Variable for storing joystick x values
int yVal; // Variable for storing joystick y values
int switchState; // Variable for storing joystick switch state
void setup() {
pinMode(xPin, INPUT);
pinMode(yPin, INPUT);
pinMode(switchPin, INPUT_PULLUP);
Serial.begin(9600); // Initialize the serial monitor
}
void loop() {
// Read the x, y and joystick switch values
xVal = analogRead(xPin);
yVal = analogRead(yPin);
switchState = digitalRead(switchPin); // Corrected to use switchState
// Print readings to the serial monitor
Serial.print("X: ");
Serial.print(xVal);
Serial.print(" | Y: ");
Serial.print(yVal);
Serial.print(" | Switch: ");
Serial.println(switchState);
delay(100);
}
Thankyou good Sir!
Why don't you use VREF to grt an accurate reference for the analogs? As you have it now you will get different analog values if you add some loads to VCC.
Hello Rachel, it is possible to use this Stick on a Computer or a iMac, to drive or fly?!?! And how i can do it?!?!
hi there Rachel I want to ask is it possible to add the joystick to a arduino cnc shield to control x and y
It is "cleaner" to perform a single "Serial.printf("X: %i | Y: %i | Button: %i
",xVal,yVal,buttonState);". It's not important in this case because you don't really care about timings (you even put a delay(100)!), but the story is slightly different when you're triggering interrupts (especially with the button). By the way, is your button debounced, or is it "raw"?
How did you re-upload it
One of cool parts of the joyknob is that the code can be used on a better joystick, right?
Yep indeed! 👍
She is so pretty, awesome tech advise!
I have a RC transmitter with an analog joystick. It has 3 pots.. X, Y, and rotate
ขอบคุณมากครับกับสาระดีๆ❤❤❤
Please Rachel could you experiment with an arduino or raspberry objects recognition from a camera like in modern cars ?😊
That sounds like a cool project!
@@RachelDeBarrosLive ok then go ! 😁
brilliant
thank you madam
I have an issue.
My joystick is reading 0 to 1 in the y axis, instead of 0 to 1023,
I have an issue in getting the mid-point for my mapping.
what Should i do ???
my project isnt working. Can you come over and take a look at it?
10:12
Oh joy!
🥳
you do pretty well darling
😀😀😀😀
🥳
thank you
can do better without your image poping all around gl
Plural of axis is axes 🙂
u Spanish?
omg u soo cool
What's the matter with your face in the thumbnail?
I stepped on a Lego 🤣