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 14, 2017, 04:59:07 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!




I've done various hacks and mods on my RC gear over the years. Starting with this one, I'll be posting about them as a series.

The Sanwa SD-5G is one of my oldest 'reputed brand' radios. First, I modded it for accepting a LiPo battery. But then it fell out of use due to lack of firmware features. To overcome that, I decided to replace the main board with an arduino.

Most of these old branded radios use 'uncommon' transmitter chips but they all accept ppm input. So, once you find the ppm input pin, all you need to do is analyze the signal and generate a similar one using a microcontroller.

There were about 15 wires between the main board and the transmitter board. It took about 2 hours to find out what  each of those wires were for. Back when I did this hack I didn't have a digital oscilloscope to study each of those wires. But, there's an easy method to find a ppm signal. Check each wire with a voltmeter (multimeter) and one of the wires with a fluctuating voltage between 1 to 3 Volts is likely to be carrying the ppm signal.

After shortlisting the wires all you need is a ppm reading sketch on an arduino to find the ppm wire. For the SD-5G, the 4th solder-pad from the right (bottom of the transmitter board) is where the ppm signal goes. It's shown with a red arrow in the attached picture.

I found out that the 3rd pin from right (at the top) needed a voltage of 0.01 volts to bind with the Rx. I used a voltage divider for this. The left resistor is 10k and the one on the right is 22E. (Shown in the attached pic) 

Sanwa Tx hack.jpg
My RC hacks: #1 : Increasing channels on a Sanwa radio
* Sanwa Tx hack.jpg (57.83 KB, 553x569 - viewed 558 times.)
« Last Edit: April 14, 2017, 05:20:36 PM by Swapnil » Logged
 

Read
« Reply #1 on: April 14, 2017, 05:07: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!



The next step is to study the original ppm signal to find out the pulse length and the frame length. I wrote an arduino sketch to print the number of channels, pulse length and frame length of the ppm generated by the stock microcontroller. I found out the following details.

No. of channels : 8
Pulse length      : 398us
Frame length    : 23593us

These values are important because the Tx chip doesn't seem to work with any other values.
Logged
 

Read
« Reply #2 on: April 14, 2017, 05:14:24 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!



The last part of the hack was to replace the stock main board with an arduino. I used a nano v3 because I had purchased 20 of them for a dirt cheap price from banggood.

The 4 pots from the sticks use pins A0 - A4 and the two switches are connected to the hardware interrupt pins. The sketch I wrote for this was optimized for minimal latency. For example, a channel value does not need to wait for the whole ppm frame to complete before it's updated. It can be updated at any time.
Logged
 

Read
« Reply #3 on: April 14, 2017, 05:40: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!



Now, the SD-5G comes with a 6 channel Rx but only the first 5 channels can be used. After the hack, up to 6 channels can be used with the on-board 'pwm' pins and upto 8 channels after finding the ppm pin on the Rx.

It can do all kinds of channel mixes and swaps on the go. Recently I've also added code for changing end points, rates, curves and loads of other features that weren't there before.

This hack can be done on any old radio and I'm hoping it'll help people mod their old radios too.
Logged
 

Read
« Reply #4 on: April 14, 2017, 08:41:54 PM »
K K Iyer
Global Moderator
Forum Hero
*****

Reputation Power: 61 
K K Iyer is a rising star!K K Iyer is a rising star!K K Iyer is a rising star!K K Iyer is a rising star!K K Iyer is a rising star!K K Iyer is a rising star!
Offline Offline

City: Indore
State: Madhya Pradesh
RC Skills: Intermediate
Posts: 5180
Join Date: Jan, 2012



@swapnil
Wow.
Wish I knew stuff like this
Logged
 

Read
« Reply #5 on: April 14, 2017, 08:48:05 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!



...
Wish I knew stuff like this

That's exactly how the rest of us feel about your knowledge and experience! Smiley
Logged
 

Read
« Reply #6 on: April 14, 2017, 10:04:47 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!



On of the best outcomes of this hack was that my cousin was able connect the Rx to an APM 2.6 directly via PCB by simply reversing the order of the channels. That is, ch-6 is now ch-1 and ch-1 is now ch-6.
Check out the attached pic.

Some other little hacks can also be seen in the pic. Like the shortened Rx antennae and the buzzer soldered to a 3-pin female header and directly connected to the APM.

Rx+APM.jpg
Re: My RC hacks: #1 : Increasing channels on a Sanwa radio
* Rx+APM.jpg (51.57 KB, 702x306 - viewed 466 times.)
Logged
 

Pages: [1]   Go Up
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Got a new Sanwa 2.4 Car Radio - Have no idea on the settings available
Radios and Receivers
mail4ajo 9 6340 Last post December 01, 2009, 09:58:22 PM
by rckatty
Does an airplane radio ever need more than 4 channels ?
Radios and Receivers
anwar 10 5438 Last post June 27, 2011, 04:30:55 PM
by PankajC
Sanwa MX3 2.4 GHz Car Radio for sale
For Sale - Completed
mail4ajo 8 5168 Last post May 07, 2012, 02:04:54 PM
by MenangJamir
Sanwa RDS8000 2.4G Radio
For Sale
Karthik9 5 3725 Last post June 18, 2014, 02:03:03 PM
by Karthik9
Adding more channels to radio?
Radios and Receivers
Shyam Hembram 11 4816 Last post February 17, 2013, 11:33:50 PM
by anwar