Justin
  • Male
  • Santa Clara, CA
  • United States
Share Twitter
  • Blog Posts
  • Discussions (21)
  • Groups
  • Photos
  • Photo Albums
  • Videos

Justin's Friends

  • John_Mac
  • Ben Levitt

Justin's Discussions

 

Justin's Page

Latest Activity

Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi Bill, I looked at Ben's solution. It looks like it's basically using the spare I/O pins for PWM signal input and output and relying on a receiver for powering the additional 3 servos. Since I'm looking for a solution that…"
Nov 28, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hey Marc, That's cool we share a similar vision. My first goal was to reproduce John's results and then do some incremental development. At this point, the goal I want to shoot for is to have the heli send telemetry data back to a PC and…"
Nov 27, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"After being plagued by mechanical issues on my heli (that are unrelated to the dev board) I finally got some good results. Many thanks to Bill and John for helping me through this! My setup: Esky 450 Belt-CP v2 Green Board NO GPS In this video,…"
Nov 24, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Bill, I also changed the check in elevatorCntrl.c and aileronCntrl.c to use pwc2 instead of pwc1 and now it's responding to both the Tx and movements of the dev board. Woo hoo! A couple things: 1) Can you explain further what we're…"
Sep 22, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi Bill, I made 4 changes total, 2 in radioIn.c and 2 in states.c. The whole project is attached. My changes are commented with my initials JTB to make them easy to find. Where is in the code is the other check against Channel 4 made? I…"
Sep 22, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"John/Bill, I dug around in the code a little bit and saw the states.c file where control is passed between the 3 modes. I hacked it up a bit so that it's looking for input on pwc2 (Ch. 3) instead of pwc1 (Ch. 4). I also re-connected…"
Sep 22, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi John, Thanks for the reply. I think my biggest obstacle at this point is figuring out how to get all the necessary wiring hooked up. My first goal is to simply get it to the point where it's running your code and the servos respond to…"
Sep 22, 2009
William Premerlani left a comment for Justin
"Hi Justin, Well, I am relieved that you finally figured it out. Good for you. Before you use John's firmware, please get in contact with him to make sure that you have the latest version, that you know how to set it up and operate it. Send…"
Sep 21, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Ok, Bill helped me get the issue with the servos worked out...although it was a rookie mistake of having the pins connected backward. =) John, Can you describe how you've connected your receiver to the 4th input channel? Bill mentioned that…"
Sep 21, 2009
Justin left a comment for William Premerlani
"Hi Bill, My apologies...this has been my fault all along. I assumed I had the wires connected to the board correctly becaues I was measuring a positive voltage between the outside pin and the middle pin. I didn't think I would be able to…"
Sep 21, 2009
William Premerlani left a comment for Justin
"Justin, Before I sign off for the night.... The problem is most certainly a pulse definition compatibility issue. It can only be a couple of things at this point: 1. Pulse polarity. If this is the case, it would not be too hard to fix it. As a…"
Sep 21, 2009
William Premerlani left a comment for Justin
"Justin, I am going to continue our dialog on your servos here for a while. Since the HiTech servo worked with the board, the board must be ok. I assume that you checked the servos with the radio. I am sure they work, but I suggest you double…"
Sep 21, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi Bill, Re-programmed with PTPER set to 20000 but still zero movement on the Esky servos. They don't flicker or make any noise or do anything at all. Justin"
Sep 21, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Ok, I plugged in the only other servo I have, a Hi-tec HS-50 and it was definitely responding to the board, so that's good. I found several specs for the Esky servos and it looks like the pulse cycle is 20ms, not 25. Could that be the…"
Sep 21, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi Bill, I did some testing with the RollPitchYaw demo, still without much luck. I programmed the board with the compiled code and powered up the heli. The red light comes on for a second or two and then goes off, which looks expected based on the…"
Sep 21, 2009
Justin replied to John_Mac's discussion Progress Report on UAV DevBoard application to CCPM Helicopters
"Hi Bill, Yes, I am running MPLAB 7.5 (the newer versions have the error others have experienced where it can't verify the source target). Libdsp-coff seems to be the file that was missing. I re-created the project and it successfully compiles…"
Sep 20, 2009

Comment Wall (3 comments)

At 5:29pm on September 21, 2009, William Premerlani said…
Justin,

I am going to continue our dialog on your servos here for a while.

Since the HiTech servo worked with the board, the board must be ok.

I assume that you checked the servos with the radio. I am sure they work, but I suggest you double check to be sure. We better not assume anything at this point.

I suggest you put the PWM period back to 25000 before we forget. Once things get running, that is where we will want it.

It would help me if you could find the actual technical spec for the servos and for the radio that you actually have. I am not sure if I believe the spec you pointed me to.

Finally, it would help if you could check the polarity of the pulses coming out of your radio. An oscilloscope would be best to take a look, but if you don't have one, a meter will work. Measure the signal with respect to ground.

If the pulses are normal polarity, mostly the meter will read low, with occasional jumps to 5 volts.

If the pulses are reversed polarity, mostly the meter will read close to 5 volts, with occasional jumps down to 0.

In any case, tell me what the meter reads.

Anyway, I am signing off for tonight, I will sleep on it, maybe I will have more ideas tomorrow.

Sorry that this is taking so long.

By the way, it is most likely that the servos you have and your radio are not based on the types of pulses the board is expecting. So in the end, we are either going to have to modify the firmware, are you are going to get find a radio and servos that are compatible with the board.

I would like to eventually have the firmware work with any radio and servos, so sooner or later I will likely bring the firmware in line with your equipment, but it is going to take a while.

Best regards,
Bill
At 5:55pm on September 21, 2009, William Premerlani said…
Justin,

Before I sign off for the night....

The problem is most certainly a pulse definition compatibility issue. It can only be a couple of things at this point:

1. Pulse polarity. If this is the case, it would not be too hard to fix it. As a matter of fact, I think that Ben Levitt has already provided for this option in his version of the firmware, which we have not tested yet.

2. The ordering of the three wires in the cable. I thought that all servos use the same ordering, but I could be wrong. I thought it was always ground, +, and signal. Just to be sure, measure the voltages on the three pins coming out of your receiver, see if this is the case. The other day you mentioned that you were seeing 3.2 volts on the power bus of the board. That surprised me, it seemed low. Possibly it came out that way because your transmitter/Rx uses a different signal sequence.

Best regards,
Bill
At 7:22pm on September 21, 2009, William Premerlani said…
Hi Justin,

Well, I am relieved that you finally figured it out. Good for you.

Before you use John's firmware, please get in contact with him to make sure that you have the latest version, that you know how to set it up and operate it. Send John a message, I am sure he will get back to you.

I have been helping him develop it, so I know a little bit about it.

There are a couple of parameters that you need to set that have to do with the slight pitch and roll angles that a helicopter assumes in a hover to counteract some unbalanced forces. John can tell you more about them. If you do not set them, your heli will fly level, but that will lead to lateral translation. Basically, the tail rotor acts like a propeller. John and I also realized that there is a pitch force as well.

You also need to set some feedback gains, and a "boost gain" so that your controls can continue to feel "lively". The stabilization tends to make it sluggish.

Also, I forgot which board you said you have. If you have a green board, there are no worries, just mount the board and use John's firmware.

However, if you have a red board, there are two things you will need to do:

1. Select the red board firmware configuration. It is not hard to do, but it does have to be done. Let me know when you get John's files, I will tell you what line to change.

2. Provide vibration isolation. The LISY gyros on the red board are disrupted by the vibrations that a heli generates.

Best regards,
Bill

You need to be a member of DIY Drones to add comments!

Join DIY Drones

 
 
 

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service