I wanted a wireless controller for this project because skateboards and skates usually do that, and it makes sense. I looked through my bin of Bluetooth modules, but I could only find something compatible if I wanted to write a phone app. I didn't. I considered ordering one of the LoRa units and learning about that, but I want to ensure this project is smooth. I ordered some standard BT units for fast delivery. Until they arrived, I added serial recognition into my sketch, connected it to a USB↔Serial converter on another computer, and confirmed that the Arduino could see the incoming data.
I split the program into a receiver and a transmitter. The transmitter will become the handheld unit with the potentiometer I will control. The receiver will connect to the ESC and accept incoming signals. I started with the receiver and programmed it to take values between 32 and 126 because they correspond to letters I can generate on a keyboard. I confirmed that letters and symbols sent from a laptop would change the servo position.
For the transmitter, I mapped the potentiometer to generate a value from 0-100, like in the early stages. Then I transmitted that value from its serial port to the receiver. I reprogrammed that side to recognize the original number range. I kept the servo working on the transmitter side to confirm I was moving the potentiometer. When I connected the transmitter and receiver, both servos moved together as I'd hoped.
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
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7
Completed projects from year 8
Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All information on this blog, or linked by this blog, is 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.
2022-10-31
I split the program into a receiver and a transmitter. The transmitter will become the handheld unit with the potentiometer I will control. The receiver will connect to the ESC and accept incoming signals. I started with the receiver and programmed it to take values between 32 and 126 because they correspond to letters I can generate on a keyboard. I confirmed that letters and symbols sent from a laptop would change the servo position.
For the transmitter, I mapped the potentiometer to generate a value from 0-100, like in the early stages. Then I transmitted that value from its serial port to the receiver. I reprogrammed that side to recognize the original number range. I kept the servo working on the transmitter side to confirm I was moving the potentiometer. When I connected the transmitter and receiver, both servos moved together as I'd hoped.
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
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7
Completed projects from year 8
Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All information on this blog, or linked by this blog, is 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.
2022-10-31
Comments
Post a Comment