Thank you very much Today I watched 13 videos and you taught me Arduino within 5 hours I have a question My joystick is different. it has 5 pins, GND, +5V, VRx, VRy, SW
Hi - glad you found our tutorials helpful! You'll need to look at the documentation for your joystick to figure that out. Some joysticks are "clickable" and you can push them down to also act like a button. My best guess is that VRx is the voltage for horizontal motion, VRy is the voltage for vertical motion, and "SW" stands for "switch" which closes when you push the joystick (so it will act like a button - see our tutorial on that earlier in the series), but I can't say for sure without seeing the datasheet for the joystick.
Sometimes written instructions for projects on our website will include circuit diagrams, since these videos are for beginners we usually stick with the breadboard layout and are not teaching circuit diagrams yet.
@@Science.BuddiesYou can still attached circuit diagrams to it cos it better stimulate the learning for both beginners & intermediate. I want to know if all the joystick terminals are used in this project? Like does it have more than LR, UD? How about rotating, SW? Etc thanks 🙏 for a wonderful explanation alwys in your videos
Yes, you could map the joystick inputs to any other output that you want. Please check out our Arduino tutorial playlist linked in the description, we have videos about motors and pumps as well!
We don't have this exact code available, but here's a project with example code that uses a joystick: www.sciencebuddies.org/stem-activities/drone-arduino-steering-joystick
// joystick pins const int LRpin = A0; const int UDpin = A1; // variables for analog readings int LR; int UD; // neutral readings for calibration int LR_neutral; int UD_neutral; // red, yellow, green, blue LED pins const int Rpin = 11; const int Ypin = 10; const int Gpin = 6; const int Bpin = 9; // LED brightnesses int R; int Y; int G; int B; const int deadzone=10; void setup() { // put your setup code here, to run once: // Initialize serial communication Serial.begin(9600); // get neutral readings for calibration // make sure you are not touching the joystick when // the program starts! LR_neutral = analogRead(LRpin); UD_neutral = analogRead(UDpin); } void loop() { // put your main code here, to run repeatedly: // read analog pins LR = analogRead(LRpin); UD = analogRead(UDpin); if(UD>=UD_neutral+deadzone){ // joystick is up B = 0; // blue LED off R = map(UD,UD_neutral,1023,0,255); } else if(UD=LR_neutral+deadzone){ // joystick is up Y = 0; // blue LED off G = map(LR,LR_neutral,1023,0,255); } else if(LR
Extremely underrated. Don't stop making these videos, they're really helpful.
I'm a beginner but i love how short and helpful this video is
thank you 👍👍
This was an amazing and useful tutorial and it helped me so much! thank you!
Wow super video!! 👌🏼
Thanks :)
Thank you very much
Today I watched 13 videos and you taught me Arduino within 5 hours
I have a question
My joystick is different.
it has 5 pins, GND, +5V, VRx, VRy, SW
Hi - glad you found our tutorials helpful! You'll need to look at the documentation for your joystick to figure that out. Some joysticks are "clickable" and you can push them down to also act like a button. My best guess is that VRx is the voltage for horizontal motion, VRy is the voltage for vertical motion, and "SW" stands for "switch" which closes when you push the joystick (so it will act like a button - see our tutorial on that earlier in the series), but I can't say for sure without seeing the datasheet for the joystick.
i recieve it per post, and i can´t wait to test them :D great modul, btw , cool channel !
Thanks! Check out our playlists for lots more Arduino tutorials and electronics projects (as well as plenty of projects in other areas of science).
Also Love your videos too
awesome
I’ve never used these but are you able to make separate joysticks the way you did and connect them together?
thank you, everything is clear. but there are not enough electrical diagrams in the lessons
Sometimes written instructions for projects on our website will include circuit diagrams, since these videos are for beginners we usually stick with the breadboard layout and are not teaching circuit diagrams yet.
@@Science.BuddiesYou can still attached circuit diagrams to it cos it better stimulate the learning for both beginners & intermediate.
I want to know if all the joystick terminals are used in this project? Like does it have more than LR, UD? How about rotating, SW? Etc thanks 🙏 for a wonderful explanation alwys in your videos
can you make a video about a joystick module 1PCS
HELL ITIS VERY GOOD I LOOK FOR SAME THIS befor but the calibration propleme i need to delet this item how i can do it ?
Instead of leds could one replace them with motors ? ( specifically small dc air pumps)
Yes, you could map the joystick inputs to any other output that you want. Please check out our Arduino tutorial playlist linked in the description, we have videos about motors and pumps as well!
what jumper wires are you using for the joy stick the orange and black ones
They are flexible male-male jumper wires like these www.amazon.com/HiLetgo-195pcs-Electronic-Breadboard-Universal/dp/B00M2GH5HG/
@@Science.Buddies Do the colors actually matter or is it just for you to identify what does what?
they dont matter@@ParkusYT
can u add a link to the code you used in the video.
We don't have this exact code available, but here's a project with example code that uses a joystick: www.sciencebuddies.org/stem-activities/drone-arduino-steering-joystick
Where is a good place to get parts for this project?
Please see the links in the video description.
Can you please give the code for the led joystick thing
// joystick pins
const int LRpin = A0;
const int UDpin = A1;
// variables for analog readings
int LR;
int UD;
// neutral readings for calibration
int LR_neutral;
int UD_neutral;
// red, yellow, green, blue LED pins
const int Rpin = 11;
const int Ypin = 10;
const int Gpin = 6;
const int Bpin = 9;
// LED brightnesses
int R;
int Y;
int G;
int B;
const int deadzone=10;
void setup() {
// put your setup code here, to run once:
// Initialize serial communication
Serial.begin(9600);
// get neutral readings for calibration
// make sure you are not touching the joystick when
// the program starts!
LR_neutral = analogRead(LRpin);
UD_neutral = analogRead(UDpin);
}
void loop() {
// put your main code here, to run repeatedly:
// read analog pins
LR = analogRead(LRpin);
UD = analogRead(UDpin);
if(UD>=UD_neutral+deadzone){ // joystick is up
B = 0; // blue LED off
R = map(UD,UD_neutral,1023,0,255);
}
else if(UD=LR_neutral+deadzone){ // joystick is up
Y = 0; // blue LED off
G = map(LR,LR_neutral,1023,0,255);
}
else if(LR
@@Science.Buddies the red bulb keeps going on when its not supposed to, and none of the other bulbs are working. What should I do?
Can you help me ??? There is a pin that says SW help plz
That might stand for Switch - some joysticks are "clickable" meaning you can push down and it will also act like a button.
I opened the serial monitor and nothing displays
same thing. you figure out why?
i heve an other jojstik