RC India
Welcome Guest, please login or register.
 
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools Topic Tools 
Read
« on: April 25, 2017, 06:44:36 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!




Hey everyone!

This is the second hack in a series of RC hacks I've done over the years. It was done last year for one of my younger cousin's 3rd year mini project.

With age and aggressive use, the potentiometers in conventional transmitter sticks become degraded (particularly around the center).

Hall-effect sensors can sense magnetic field strength and output a proportional voltage. As there is no contact needed (and hence no friction), there is no degradation of any kind in output due to age. 
I had always wanted to replace pots with hall-effect sensors in the past but couldn't figure out how to fit them on a stick gimbal. But, with advances in 3D printing technology in the past few years, I finally had a way.

I studied the dimensions of the stick potentiometer and created a similarly shaped part in sketchup that would fit in the gimbal and hold a cylindrical magnet. This was the hardest part as there was 'trial and error' involved.

The next bit was easy. All I had to do was place an analog hall-effect sensor below the center of the magnet and read its output using a cheap STM32F103C8T6 board.
« Last Edit: April 25, 2017, 07:04:54 PM by Swapnil » Logged
 

Read
« Reply #1 on: April 25, 2017, 06:46:37 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!



Pic 1: 3D design of the magnet holder that fits in the transmitter stick gimbal. Designing this part in Google Sketchup took a few hours and 5 revisions.

magnet holder with pot stick.jpg
Re: My RC hacks: #2 : Replacing transmitter pots with hall-effect sensors
* magnet holder with pot stick.jpg (10.95 KB, 550x550 - viewed 1173 times.)
« Last Edit: April 25, 2017, 07:05:16 PM by Swapnil » Logged
 

Read
« Reply #2 on: April 25, 2017, 06:51:33 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!



Pic 2: The actual 3D printed part.

I used Neodymium disk magnets (5mm diameter, 2mm thickness) to make a 2cm long cylindrical magnet. The 3D design was difficult as I wanted to friction-fit the cylindrical magnet in the 3D printed part such that part of the magnet was exposed. It worked perfectly. I did not have to glue it. Just pushed it hard, slowly and steadily.

This part was 3D printed by one of our forum members, Mr. Avadhut Deshmukh (Avadhut10001). He sent me 4 of those for only about  Indian Rupees 100!

magnet holder with pot stick - printed.jpg
Re: My RC hacks: #2 : Replacing transmitter pots with hall-effect sensors
* magnet holder with pot stick - printed.jpg (19.37 KB, 480x480 - viewed 1213 times.)
« Last Edit: April 25, 2017, 07:06:03 PM by Swapnil » Logged
 

Read
« Reply #3 on: April 25, 2017, 07:03:17 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!



Pic 3: Magnet holder placed in stick gimbal

The 3D printed part fit nicely in the stick gimbal.

As the magnet rotates around an axis passing through its center and transverse to the cylindrical axis, we can get the maximum output range from the hall effect sensor. This is achieved by placing the sensor such that as the stick is moved to one end, one face of the cylindrical magnet is closest to the sensor and as the stick is moved to the other end, the other face is closest to the sensor.


I used the ss49e hall sensor with the STM32F103C8T6 board as it has a 12-bit ADC for maximum resolution.

Magnet holder in stick gimbal.jpg
Re: My RC hacks: #2 : Replacing transmitter pots with hall-effect sensors
* Magnet holder in stick gimbal.jpg (24.1 KB, 438x438 - viewed 1480 times.)
Logged
 

Read
« Reply #4 on: April 25, 2017, 07:59:11 PM »
Bilal
Plane Lover
Forum Hero

*****

Reputation Power: 8 
Bilal has no influence.
Offline Offline

City: Hyderabad
State: Telangana
RC Skills: Intermediate
Posts: 546
Join Date: Mar, 2011

scratch builder and DIYer



Swapnil sir, if possible, kindly post a step by step instruction, I have a TGY 9X lying around that I want to do this mod on. Closely following your posts
Logged

Cessna - 184
Mr. Moss
Self-Design Glider
550 DIY Quad
Scratch Build TriCopter
VT-Allrounder
Telemaster 400
ZMR 250
 

Read
« Reply #5 on: April 25, 2017, 08:33:07 PM »
saikat
Plane Lover
Forum Hero
*****

Reputation Power: 14 
saikat has no influence.
Offline Offline

City: Tezpur
State: Tripura
RC Skills: Expert
Posts: 1130
Join Date: Jul, 2009



good project

you are using one stm32 for all 4 inputs ?
what about the trim switches ?

.
Logged

 

Read
« Reply #6 on: April 25, 2017, 08:59:34 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!



@ Bilal

It's fairly straightforward. You just need 4 parts:
1) Nd magnets
2) A 3D printed part to fit in the pot socket and to hold the stack of magnets.
3) A hall sensor
4) A microcontroller

The SS49E hall sensor has a single analog voltage output which can be easily read by any microcontroller . I'd recommend using an arduino as it's easier to work with .   

@ saikat

As I mentioned in the first post, this project was my cousin's 3rd year mini project and was done mostly for demonstration purposes. We just modded the roll axis pot. However, an stm32F103 board can certainly be used for all analog channels and trim switches as it has 10 analog pins.

On one of my 12 channel transmitters, I have 8 analog inputs (for 4 sticks) and the trim switches are fed to interrupt pins. 
Logged
 

Read
« Reply #7 on: April 26, 2017, 04:11:50 PM »
shreeyak
Heli Lover
Senior Member
***

Reputation Power: 2 
shreeyak has no influence.
Offline Offline

City: Bangalore
State: Karnataka
RC Skills: Beginner
Posts: 138
Join Date: Mar, 2014


Re:

@swapnil can I ask you what tool chain and ide you use to develop code on STM32? And do you use STM HAL, libopencm or something else?

Sent from my ONE A2003 using Tapatalk
Logged
 

Read
« Reply #8 on: April 26, 2017, 05:35:22 PM »
Swapnil
Plane Lover
Forum Hero

*****

Reputation Power: 20 
Swapnil barely matters.Swapnil barely matters.
Offline Offline

City: Pune
State: Maharashtra
RC Skills: Beginner
Posts: 1755
Join Date: May, 2010

Retreat, Hell!



@  shreeyak
Back then, my cousin used the Arduino IDE with the Arduino-STM32 add-on created by Roger Clark.

With my F407 I use TrueStudio (or Keil) and HAL.
Logged
 

Pages: [1]   Go Up
Jump to: