Advanced AVR Servo 3.0 - POT ADC MCU timer Signal Generation Code

Channel:
Subscribers:
579
Published on ● Video Link: https://www.youtube.com/watch?v=1Z1FRO6RfQM



Duration: 2:20
92 views
1


Harder and easier than one could imagine. To increase both code and speed efficiency, 2 timers clocked in with 2 different sources are required to generate the long 20000us delay, the short 500-2500us delay and the ever shorter 30us delay for one step of the arm position. 2000/30=66 positions are possible with a rotation angle of about 200 degree.

This belongs to Advanced AVR 3.0 because beside the above features, there will be a fast mode and a silent mode. While the servo arm is an simple output device, able to track its precise position at any moment of MCU time can be critical, and this has 2 factors: time and load, so good coding is anything but simple.

Thus this is a high precision timer example. Instead of blinking LED, the waveform is used to control a servo. Advanced code developed here will be utilized in a 3D-printed mechanic clock. The rotational mechanism may even be used to switch a 10-digit Nixie tube, a semi-mechanic high voltage digital clock.

Finally to make this battery-friendly, the servo code needs to have 3 modes of operation: 1, active; 2, idle; 3, power-down; In active mode, the servo is continuously powered by a control signal; In idle mode, the servo signal is halted, but its arm location is held by applying power to the module; In power-down mode, no-signal and no power are applied to the servo.




Other Videos By Flyandance


2023-09-075 years Old HD Test - 8TB HGST Ultrastar He8 Helium Hard drive test from goHardDrive
2023-08-30ultimate guide on Android - Copy 5k files with ADB push - MTP too slow - small file Increase speed
2023-08-27ultimate guide on Android - Nexus 7 2012 in 2023
2023-08-26ultimate guide on Android - Finalizing - GCam Google Camera HAL3 - boot logo hack - ADB command FD
2023-08-20A ultimate guide on Android - Chipset, root, netguard VPN, APK MOD, adb and fastboot flashing ROM SP
2023-08-18Analog Servo FS90 9G 3D modeling negative printing
2023-08-1474HC164 and 74HC165 - Pro 11 Ghosting library New camera Setup Serial Parallel Shift Register
2023-08-11New template - Aesthetic Web Site update 2023 August - Code lightweight JavaScript DOM
2023-08-06Finalized - Aesthetic Web Site update 2023 August - Advanced AVR 3.0
2023-08-05Reinvented - Aesthetic Web Site update 2023 August - Advanced AVR 3.0 AE
2023-07-18Advanced AVR Servo 3.0 - POT ADC MCU timer Signal Generation Code
2023-07-02Infinity love PCB Draft 1 - Breathing + chasing LED
2023-07-01Infinity love Draft 1 - Breathing + chasing 7x7=49 LED
2023-06-25AE - breathing LED Infinity love - Proof of concept - Ramp generation
2023-06-24AE - LED blinker - Capacitor charging and discharging - Op Amp LM358 - Advanced Electronics
2023-06-23Pro 11 - 555-based CV CC SEPIC power supply - constant voltage and current
2023-06-22Pro 11 - New High Voltage Converter driver Stress Test (2.598 watt)
2023-06-21Pro 11 - NHVCD vs 120v light bulb - 1.96 watts - High Voltage driver Boost converter - MCU AVR
2023-06-20Pro 11 - NHVCD DC-DC High Voltage driver reinvented test Boost converter - MCU AVR
2023-06-19ABC 5.0 - PWM LED blinker - Low power watchdog button - Advanced AVR 3.0 core
2023-06-18Last maid standing - Under dog style - Brain power vs muscle power | size doesn't matter F the queen