Yesterday's Arduino sketch was uploaded to a generic UNO board which was on hand. Since the program was so simple it would be no trouble to upload the same sketch to any board with enough pins. If PWM wasn’t capable on the output pins it would be a simple matter to rearrange them to match any board from a Pro Mini to a MEGA. A simple circuit was connected on a breadboard with a couple buttons and a couple LEDs.
For the purpose of a demonstration, LEDs were connected to the outputs. These simply demonstrated that the outputs were using an increasing duty cycle. This was narrated in the video as well. Each button outputs to the LED next to it, one red and one green.
A second video was taken and narrated. This video demonstrated the change in duty cycle on a digital multi-meter. The readings gradually increase and the bar graph at the bottom of the screen increase proportionally too.
Experimenting with the program lead to some discoveries about the motor and H-bridge interaction. When a low duty cycle was applied there was no movement but the motor would make a high-pitched tone that increased in volume as the duty cycle increased. When enough power was delivered the tone would stop and the motor would turn silently. Presumably, this tone was a product of the PWM. Since moving the motor was more than a simple matter of applying a duty cycle from 0 to 100 percent, more experiments will have to be run with the Arduino sketch. Several questions will have to be asked and answered so that an effective program can be written to control the gear boards.
Downloads:
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Completed projects from year 3.
Disclaimer for http://24hourengineer.blogspot.com/
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All information in this blog, or linked by this blog, are not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property or similar, is the responsibility of those involved in the replication.
All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by Brian McEvoy, cannot be used to claim property or assets.
Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.
This blog, including pictures and text, is copyright to Brian McEvoy.
2016-12-04 (Su)
Components and battery
For the purpose of a demonstration, LEDs were connected to the outputs. These simply demonstrated that the outputs were using an increasing duty cycle. This was narrated in the video as well. Each button outputs to the LED next to it, one red and one green.
Video demonstration of ramping program
A second video was taken and narrated. This video demonstrated the change in duty cycle on a digital multi-meter. The readings gradually increase and the bar graph at the bottom of the screen increase proportionally too.
Program demonstration with meter
Experimenting with the program lead to some discoveries about the motor and H-bridge interaction. When a low duty cycle was applied there was no movement but the motor would make a high-pitched tone that increased in volume as the duty cycle increased. When enough power was delivered the tone would stop and the motor would turn silently. Presumably, this tone was a product of the PWM. Since moving the motor was more than a simple matter of applying a duty cycle from 0 to 100 percent, more experiments will have to be run with the Arduino sketch. Several questions will have to be asked and answered so that an effective program can be written to control the gear boards.
Downloads:
- Gears
- Panel layout PDF or DWG
- S Symbol Plate OpenSCAD source or STL model
- Ultrasonic flush-mount source or STL
- Internal ring gear
- Spring hub includes source and STL for metric and imperial
- Slow ramping Arduino sketch
- 1 Small Arduino Micro
- 2 Stereo potentiometers (10K)
- 4 Multi-turn potentiometers (10K)
- 2 Twelve volt DC motors
- 1 Dual H-bridge
- 2 Ultrasonic distance sensors
- 1 Sine wave generator or the Amazon version
- 1 Voltage Regulator
- 1 Twelve volt three amp power supply
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Completed projects from year 3.
Disclaimer for http://24hourengineer.blogspot.com/
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All information in this blog, or linked by this blog, are not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property or similar, is the responsibility of those involved in the replication.
All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by Brian McEvoy, cannot be used to claim property or assets.
Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.
This blog, including pictures and text, is copyright to Brian McEvoy.
2016-12-04 (Su)
Comments
Post a Comment