Andy Vickers
Andy Vickers
  • Видео 16
  • Просмотров 98 063
Using an RC controller with an Arduino - Part 2
Using an RC controller with an Arduino - Part 2
Part 2: Refine and Translate RC Controller Input
This video adds the following features to the code we made in part 1:
0:00 Intro
2:45 Failsafe - if the RC controller goes out of range, react
5:03 Inversion - if your control stick goes the wrong way we can handle it
6:37 Deadzone - don't react until the sticks are intentionally pushed
9:10 Translation - map our values to a sensible range like -100 to 100
11:20 Servos - using our newly translated values to drive a servo
All the code for this video is available for free on my website.
Main Website: www.andyvickers.net
Accompanying Blog Article: www.andyvickers.net/2022/11/17/arduino-rc-controller...
Просмотров: 4 553

Видео

Save Money - Power your ODrive robot with a power tool battery (Makita, Dewalt, Milwaukee and mire)
Просмотров 1,1 тыс.2 года назад
In this video I'll show you how to power your robot from power tool battery. I used Makita batteries and hooked them up to an odrive. This would also work with Dewalt, Milwaukee, Black and decker or any power tool battery. Warning: Batteries can be dangerous. Always be careful with high capacity batteries. Take care not to short the connections or reverse polarity. Use a multimeter to check bef...
First Chips on the Mill & CNC feeds and Speeds Test GCode Generator
Просмотров 2,5 тыс.3 года назад
In this video I put my first chips on the mill and show you a spreadsheet I used to generate speeds and feeds gcode to run multiple tests with ease. I run through multiple feed rates and cutting parameters on Aluminium (Aluminum) and show you the cuts and the chips made. I also had a catastrophic failure from pushing the mill too hard but we will try to ignore that :) Link to the spreadsheet fr...
Using an RC Controller with an Arduino [With code and wiring]
Просмотров 36 тыс.3 года назад
Using an RC controller with an Arduino - Part 1 In this video I show you how to use an RC controller to send signals to an Arduino controller. I explain how interrupts work, demonstrate the serial plotter and we write the code together. All the code for this video is available for free on my website. www.andyvickers.net/2020/12/15/arduino-rc-controller-input/ I accept no liability for any damag...
Quick Build Enclosure for Benchtop CNC Mill for under $350!
Просмотров 3 тыс.3 года назад
QuickBuild CNC Enclosure for less than $350 - coolant ready This is a quick build video showing how I built an enclosure for my Taig benchtop mill. I used commonly available parts from local hardware stores. All the items I used today can be seen at the link below: www.andyvickers.net/2021/03/20/quickbuild-benchtop-cnc-enclosure-for-less-than-350-coolant-ready/ In my videos I make things. These...
Assembling the Taig 5019CR (CNC Ball Screw Mill)
Просмотров 6 тыс.3 года назад
Assembly video for the Taig 5019CR (CNC Ready Mill) In this video I take you through the basic assembly of the mill, provide tips that worked for me in assembling the machine. I show you how I dialed in the accuracy of the X Y and Z axis using dial indicators. I showed how you can use a saunders machine works product as a mirror in a pinch :). I connect the motors, wire up the controls and test...
Unboxing the Taig 5019CR Micro Ball Screw Mill
Просмотров 9 тыс.3 года назад
Unboxing video for the Taig 5019CR (CNC Ready Mill) In this video we unpack the taig mill and some other goodies and talk about what's inside. We talk about the basic components of the mill and how they fit together. Also a brief look at the saunders machine works fixture plate, a tool setter probe and some other bits you need to get up and running * Some of the links below are affiliate links ...
Activating Anti-Cogging on the ODrive Robotics Controller (smooth brushless motor control)
Просмотров 15 тыс.3 года назад
I wanted to make a video explaining how to enable anti-cogging on the odrive robotics motion controller to help others gain better control of their robots at slow speeds. This took me a little time to get my hear around so I wanted to save others some time. NOTE: brushless motors can be very powerful. I take no responsibility for any damage to yourself of your equipment as a result of following...
Jarvis - 8 Wheel Robot - Chassis and Rocker-Bogie Assembled
Просмотров 1,8 тыс.3 года назад
This is just a quick 360 of my assembled 8 wheeled robot I call JARVIS. If you want to know how to build one, you can follow my build process on my blog at: www.andyvickers.net/category/robotics/
Jarvis - 8 wheel robot - Rocker-Bogie moving over obstacles
Просмотров 1,6 тыс.3 года назад
This is just a very quick demo of one of the rocker-bogie mechanisms on my robot I call JARVIS as itr traverses some simple obstacles. If you want to know how to build one, you can follow my build process on my blog at: www.andyvickers.net/category/robotics/
Lego Xwing - Timelapse build
Просмотров 615 лет назад
Well, I got a new Canon M50 camera and wanted to test out the time lapse feature so what better way than to nerd out and build some Lego
Playing around with the triton
Просмотров 9209 лет назад
Experimenting with the Korg Triton Pro X 88. Just freestyling...hence the mistakes. No midi, just a presonus USB and a PC.
kakariko village
Просмотров 829 лет назад
First time playing with Reaper and Alchemy
Titan CoreXY First Steps
Просмотров 63310 лет назад
Dry fit on new dev bot
Ramps 1.4 Servos for Auto Bed Leveller on RepRap 3d printers .avi
Просмотров 14 тыс.11 лет назад
Ramps 1.4 Servos for Auto Bed Leveller on RepRap 3d printers .avi

Комментарии

  • @irkedoff
    @irkedoff 7 дней назад

    This answered a few doubts I had. Thank you.

  • @strikkflypilot927
    @strikkflypilot927 Месяц назад

    Great video, but how on earth do You find all the values? I have an RMD X8 Motor and the datasheet contains almost no values...

  • @TT-qo9dv
    @TT-qo9dv 2 месяца назад

    Nice little machine 😊

  • @wh0tube
    @wh0tube 5 месяцев назад

    I came here to see the taig, but from 2:42 onward I’ve been awestruck by your socket set! 😁👍

  • @RwP223
    @RwP223 5 месяцев назад

    I never knew the value of a speed-square until I used one.

  • @sukiperu1
    @sukiperu1 6 месяцев назад

    Great Video, thanks for sharing. Im also based in the UK so great to find other UK Taig users online. Can I ask where did you purchase the Gecko G540 CNC Controller from and is it 110V or 240V power supply? And finally how have you found the size of Steppers you chose? Im in the same position as you would have been so would be great to get you feedback? Oh sorry finally finally what was the little Purple interface block you fitted? Cheers in advance. Bobby🙏

  • @ramarao1436
    @ramarao1436 6 месяцев назад

    Thanks Andy.. I am beginner and indeed the code helps a lot on my project.. by the way ,is the any chance can we smooth out the servos ? By adding VarSpeed?

  • @gofundme.comjourneyofchris2299
    @gofundme.comjourneyofchris2299 7 месяцев назад

    Hi, do you have a wiring diagram?

  • @riccardodipietro4400
    @riccardodipietro4400 8 месяцев назад

    Do you still sell the boards? i cant find your website

  • @badfeatherknives5189
    @badfeatherknives5189 9 месяцев назад

    Really helpful video for this new owner of a TAIG 5019DSLS Micro Mill. Especially helpful for me was the bit about how to install the step motors on this machine. Thanks for that!

    • @InitialPC
      @InitialPC 5 месяцев назад

      how is it? what do you use it for? what do you use for cadcam?

  • @SAMETELMACI
    @SAMETELMACI 9 месяцев назад

    ı dont want use close loop control on my electric scooter, is that possible?

  • @ezsolt26
    @ezsolt26 11 месяцев назад

    Great job Andy! Saved me a lot of time!!

  • @skaa9217
    @skaa9217 11 месяцев назад

    very nice tutorial, thanks, the safety focus is great

  • @bektinurwanto
    @bektinurwanto Год назад

    This metode to receive Ppm output from remote sir?

  • @Sergio-np4lb
    @Sergio-np4lb Год назад

    buen video, has pensado en utilizar la salida PPM para leer y controlar todos los canales con solo un cable conectado del receptor al arduino? esto seria muy bueno para controlar por ejemplo unos motores de hoverboard con la placa ZS-X11H y algunos servos y mas componentes para hacer una gran construcción

  • @crckdns
    @crckdns Год назад

    nice explanation, but does it work parallel? I mean, interrupt interrupts whole flow to compute a thing... what if at the same time second input comes in? or third? or all 4 channels? can it handle all 4 inputs at same time and provide proper reading/acting?

  • @tomtang2639
    @tomtang2639 Год назад

    wow didnt realize corexy is already here 8 years ago!

  • @argentosebastian
    @argentosebastian Год назад

    I'm getting a "'rc_read_values' was not declared in this scope" error. Why?? // Set the size of the arrays (increase for more channels) #define RC_NUM_CHANNELS 4 // Set up our receiver channels - these are the channels from the receiver #define RC_CH1 0 // Right Stick LR #define RC_CH2 1 // Right Stick UD #define RC_CH3 2 // Left Stick UD #define RC_CH4 3 // Left Stick LR // Set up our channel pins - these are the pins that we connect to the receiver #define RC_CH1_INPUT 18 // receiver pin 1 #define RC_CH2_INPUT 19 // receiver pin 2 #define RC_CH3_INPUT 20 // receiver pin 3 #define RC_CH4_INPUT 21 // receiver pin 4 // Set up some arrays to store our pulse starts and widths uint16_t RC_VALUES[RC_NUM_CHANNELS]; uint32_t RC_START[RC_NUM_CHANNELS]; volatile uint16_t RC_SHARED[RC_NUM_CHANNELS]; // Setup our program void setup() { // Set the speed to communicate with the host PC Serial.begin(9500); // Set our pin modes to input for the pins connected to the receiver pinMode(RC_CH1_INPUT, INPUT); pinMode(RC_CH2_INPUT, INPUT); pinMode(RC_CH3_INPUT, INPUT); pinMode(RC_CH4_INPUT, INPUT); // Attach interrupts to our pins attachInterrupt(digitalPinToInterrupt(RC_CH1_INPUT), READ_RC1, CHANGE); attachInterrupt(digitalPinToInterrupt(RC_CH2_INPUT), READ_RC2, CHANGE); attachInterrupt(digitalPinToInterrupt(RC_CH3_INPUT), READ_RC3, CHANGE); attachInterrupt(digitalPinToInterrupt(RC_CH4_INPUT), READ_RC4, CHANGE); } // Thee functions are called by the interrupts. We send them all to the same place to measure the pulse width void READ_RC1() { Read_Input(RC_CH1, RC_CH1_INPUT); } void READ_RC2() { Read_Input(RC_CH2, RC_CH2_INPUT); } void READ_RC3() { Read_Input(RC_CH3, RC_CH3_INPUT); } void READ_RC4() { Read_Input(RC_CH4, RC_CH4_INPUT); } // This function reads the pulse starts and uses the time between rise and fall to set the value for pulse width void Read_Input(uint8_t channel, uint8_t input_pin) { if (digitalRead(input_pin) == HIGH) { RC_START[channel] = micros(); } else { uint16_t rc_compare = (uint16_t)(micros() - RC_START[channel]); RC_SHARED[channel] = rc_compare; } } void loop() { // read the values from our RC Receiver rc_read_values(); } / this function pulls the current values from our pulse arrays for us to use. void rc_read_values() { noInterrupts(); memcpy(RC_VALUES, (const void *)RC_SHARED, sizeof(RC_SHARED)); interrupts(); } // output our values to the serial port in a format the plotter can use Serial.print( RC_VALUES[RC_CH1]); Serial.print(","); Serial.print( RC_VALUES[RC_CH2]); Serial.print(","); Serial.print( RC_VALUES[RC_CH3]); Serial.print(","); Serial.println(RC_VALUES[RC_CH4]);

  • @muratozdemir1167
    @muratozdemir1167 Год назад

    Can you help with a code that can drive this project with a stepper motor?

  • @re-i-fu
    @re-i-fu Год назад

    Was thinking about this problem and somehow Google read my brainwaves and passed on your link... wonder how that works. Anywho, thanks for excellent video :)

  • @AmitsLife
    @AmitsLife Год назад

    I really appreciate your clear and concise video.

  • @rcrotorfreak
    @rcrotorfreak Год назад

    I sure do see you into all this Arduino open source stuff. Why not Radio Master as for radio? Open source lot of configuration you can do unlimited. By the way I'm gonna browse you're channel :) I love robots and Arduino also rc.

  • @KordiakDG
    @KordiakDG Год назад

    I was struggling with a solution which I made in my AVR for whole day, but just a few minutes of watching your video solved my problem. Thank you:)

  • @jeffrockow6282
    @jeffrockow6282 Год назад

    Very nice explanation. This is going to help me out a bunch. I realize there are 101 ways to code the same functionality, but I was wondering if you see an advantage in storing the PWM duration into RC_SHARED and then calling the rc_read_values subroutine to port the values into RC_VALUES. Why not just store the PWM duration directly into RC_VALUES and eliminate the rc_read_values subroutine altogether?

  • @shortVideo-nj5sv
    @shortVideo-nj5sv Год назад

    هل من الممكن وضع أبعاد القطع المستخدمة العجلات .. الحوامل.. أبعاد المعدن او المركبة بشكل عام وشكرا جزيلا

  • @SFXDC5
    @SFXDC5 Год назад

    Hi Andy, would you be able to help me code for a sbus receiver? I am trying to make a sketch to control a starwars D-O droid with 2 main drive motors. See matt denton at mantis hacks RUclips channel.

  • @darthvader_7023
    @darthvader_7023 Год назад

    Thanks! I'm building a full size R2-D2 and decided to use a RC controller so this helps a lot.

  • @lindat5941
    @lindat5941 Год назад

    Thanks Andy, by the way i have recently sent you a DM on Facebook. Regarding Brushless DC motors and RC controller

  • @samiulhoque3769
    @samiulhoque3769 Год назад

    Thanks so much Andy! Was waiting eagerly for this one. 👍

    • @AndyVickersNet
      @AndyVickersNet Год назад

      You’re welcome! I wish I could have made it sooner!

  • @bob_mosavo
    @bob_mosavo Год назад

    Thanks, Andy 😁

  • @Quantalume
    @Quantalume Год назад

    You know a man is serious when he buys WD-40 by the gallon. 😂

  • @AChi__
    @AChi__ Год назад

    Wow! You achieved superhero status with your level of crisp and crystal clear explanations. Yep, you earned yourself my humble sub as my token of thanks and appreciation. By chance, did you make the part 2 yet?

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Thank you SO MUCH for the kind feedback! Part 2 just posted! I hope it lives up to part 1!

    • @AChi__
      @AChi__ Год назад

      @@AndyVickersNet Yes it did. Great stuff man 👍🏽👍🏽

  • @samiulhoque3769
    @samiulhoque3769 Год назад

    This was really helpful! Any news on part 2 of this video?

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Yes! This was released, please check it out!

  • @random_idRI
    @random_idRI Год назад

    How to make suspensi wit servo

  • @IntelliTrance
    @IntelliTrance Год назад

    Can you post a link to the Parallel to USB Board in your online shop?

  • @charlmy8ightbuggy227
    @charlmy8ightbuggy227 Год назад

    AWESOME Thank You

  • @emperortech1312
    @emperortech1312 Год назад

    Good

  • @gekigasky
    @gekigasky Год назад

    Great video! Seriously considering buying one of these very soon. Please consider investing in a better microphone.

    • @AndyVickersNet
      @AndyVickersNet Год назад

      I recently found out that the rode mic I was using has a known flaw where it picks up WiFi signals and it causes the hum and popping. The fix was to wrap it in aluminium foil 🤣

  • @electroshiv4661
    @electroshiv4661 Год назад

    Hello, sir can you help me in writing a Arduino code

    • @AndyVickersNet
      @AndyVickersNet Год назад

      All the code is available on my website linked in the description

  • @matthewdonoghue321
    @matthewdonoghue321 Год назад

    I think watching this video may have put me off buying one of these... this machines ability to stay in tram depends on only one screw that if you overtighten will distort the frame. It doesn't seem very sturdy to me. I have had the experience in the past with a light milling machine with a non box section column that would constantly go out of alignment with even light 20 thou cuts.... with this thing only holding on with one screw I can really see what's stopping it. Otherwise it looks like a well built little machine.

    • @matthewdonoghue321
      @matthewdonoghue321 Год назад

      Ok, I've just watched your next video and I see you have had that very problem. I suspect you will have this problem over time even when you aren't pushing it. Things that are held with only one screw have an amazing ability to drift.

    • @cecilking3727
      @cecilking3727 Год назад

      The coluem has a piece of machined steel in the base that keeps you from distorting the coleum,the do not go out of alignment unless you drop it off the table,they are a very well designed and over built machine and very accurate,I had a sherline mill and it was very prone to chattering because of the aluminum they use is not stiff enough for a mill

    • @AndyVickersNet
      @AndyVickersNet Год назад

      You aren’t wrong. My plan was to drop a keyway in to force the column to stay aligned as I had that slippage happen one too many times. I never got round to it however.

  • @Ademan555
    @Ademan555 Год назад

    How are you feeling about the machine a year later?

  • @jamesherndon9131
    @jamesherndon9131 Год назад

    Great video, thanks for sharing the info! Any new updates of final speeds and feeds/performance of the Taig?

  • @angaar5705
    @angaar5705 Год назад

    How you made it ? can you share video

  • @bounce2159
    @bounce2159 2 года назад

    I think climb milling may have helped. The side wall finish looked like a lot of chips were stuck/welded to it where you are re-cutting using conventional milling.

  • @robertmurton7373
    @robertmurton7373 2 года назад

    Hello Andy have published part 2 yet. I was thinking of using a set frequency for pwm so I wouldn't need interrupts

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Second video is live! I am not sure what you mean with the set frequency. Is there a reason you want to remove the interrupts?

  • @stefanguiton
    @stefanguiton 2 года назад

    great video, quick and straight to the point

  • @Euforia706
    @Euforia706 2 года назад

    I have and Arduino Nano, but it's not working, i change the pins from 18, 19, 20 and 21 to digital 8, 9, 10 and 12 but nothing- Help

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Only pins 2&3 are interrupts on the nano according to the arduino website: www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/#:~:text=Uno%2C-,nano,-%2C%20Mini%2C%20other%20328%2Dbased

  • @hithishi5292
    @hithishi5292 2 года назад

    Really helpful, thanks a lot!! how to control 2 DC motors (which has encoder with PWM ,DIR and A&B feedback pins) using RC receiver!! And Can the code support PPM (It would be great, Even if the video is about PPM and DIR pins only) thank you very much!!

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Part 2 has servo control in it. Setting up steppers would be very easy if you follow that example

  • @fredboat
    @fredboat 2 года назад

    Thanks for the show, Enjoyed the humor. I just bought a used Taig cnc mill , So far so good. i have a home shop machine shop allreay and wanted to add this cnc capabilities. Good Luck from Texas,usa.

  • @mohamedramdhanemesmoudi6411
    @mohamedramdhanemesmoudi6411 2 года назад

    I need part 2 ????

    • @AndyVickersNet
      @AndyVickersNet Год назад

      Its been released! Please check it out and let me know if it helps!