Fun, Learning, Friendship and Mutual Respect START  HERE


Unregistered
Go Back   HeliFreak > R/C Electronics Support > JLog - The JIVE logging stamp


JLog - The JIVE logging stamp JLog - The JIVE logging stamp - Official English Support Forum


Reply
 
LinkBack Thread Tools Display Modes
Old 01-17-2016, 11:34 AM   #41 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

Also did another test. I re-flashed the Firmware but this time WITHOUT any pulse.txt file and even without the file present it still was showing 0% (MAX) and 100% (Idle).

I would seem that it always keep the first version of the pulse.txt I did ?
mdu6 is offline        Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 01-17-2016, 03:34 PM   #42 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

Tested everything.

Servo pulse in center pin of OPT, played with several value pairs in pulse.txt.
It just works...
(Question: pulse length is displayed correctly?)

RPM pulse in parallel to above in signal pin of OPT, pulled the red wire to supply the sensor from another source (used the 3.3V coming of the center pin of JLog's s.bus2/s.port port).
Well... rpm was wrong.., not *10 but *2. Forgot that I had to re-implement the ext rpm routine also (for "specialservoCH0").
Tested with a frequency generator as rpm pulse source, with 1 | 10 |100 Hz, corresponding to 60 | 600 | 6000 rpm. Displayed and logged correctly now.

Find attached the new firmware which corrects the "*2 bug".
Attached Thumbnails
Click image for larger version

Name:	specialservoCH0-config.jpg
Views:	130
Size:	68.4 KB
ID:	630457   Click image for larger version

Name:	specialservoCH0-test.png
Views:	132
Size:	22.9 KB
ID:	630458  
Attached Files
File Type: pdf 26-J_Essc-111.125.bin.pdf (60.0 KB, 66 views)
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-17-2016, 03:41 PM   #43 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

Thanks (again) Tom - I will test everything later tonight.
mdu6 is offline        Reply With Quote Quick reply to this message
Old 01-17-2016, 04:10 PM   #44 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

A cigarette smoked ..., besides I usually think of a solution. Smoking reduces the oxygen content in the brain, strange that I always have ideas.

rpm:
I suspect your rpm sensor generates very short pulses. Will change the software to be resistant to it.

pulse:
No idea what's happening there.. So let's try this: I make a special firmware setting useful values in the four cells of JLog's non-volatile memory.

I do this tomorrow, here the backup is already running.
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-17-2016, 04:33 PM   #45 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

On the throttle % - when you said it is working on your side - this means to me that you have reverse the servo direction and switch the values in the pulse.txt file to still show 0% at idle and 100% at max ? Right ?
mdu6 is offline        Reply With Quote Quick reply to this message
Old 01-17-2016, 07:52 PM   #46 (permalink)
Registered Users
 

Join Date: Feb 2014
Location: Littleton, Colorado
Default

Thanks Tom for the firmware update. I have been using this firmware also. I am still a couple weeks away to finishing my Goblin 700 Gasser. I am using a Stator Gator for the RPM pulse, but will need to have the engine running before I know the result. I do have a scope, so I will be able to see what the pulse looks like.
__________________
SAB RAW 700 Piuma - Synergy E5SS - Synergy N7 Gasser - Goblin 500 - T-Rex 450L (x2) - Oxy 2 - Spirit FBL - Jeti DS-16 G2
AccuRC to train my brain
FrankFuss is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 01:31 PM   #47 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

OK, but now.

That is a bit complex.. Background is:
Both pins, - center pin for servo pulse, "signal" pin for rpm pulse, - connect to GPIO's (General Purpose I/O) of the micro controller which belong to the same interrupt group. We have to use so called pin change interrupts.

An interrupt has to be triggered on both edges, low->high and high->low. We need that on the "servo pin" to measure a positive (high) servo pulse (only Castle Link Live using a negative pulse). The "rpm pin" measures the time between two high->low edges of a rpm pulse.

We have different frequencies, variable rpm pulse frequencies, - variable duty cycle in the servo signal, - any duty in rpm signal.
The phase angle between the two signals is constantly changing.

Now it is indeed not easy to differentiate between both signals because they terminate in the same interrupt routine. What pin triggered the interrupt? We have to measure times in microsecond resolution at minimum.

All other firmwares for JLog do not have do deal with such a situation.

Anyway.. Made several modifications. That helps but cannot cure entirely. So I implemented on top hazard filters, 10-stage for servo pulse, 1-stage for rpm pulse.

See the attached screen shots. Because both signals interact with each other - interference depends especially on the rpm pulse frequency. Shot 2 shows the activity of the 10-stage anti hazard on top. In shot 3 we're running a higher rpm pulse frequency, - for 6000 rpm on a 1-pulse-per-revo sensor. I think, in practice we'll have at max about 2500 at a ratio of 1:10. (Some minor hazards are rarely still possible in "PulseLen", more effective acting in "throttle": big range --> small range)

I had to extent pulse.txt, 3rd item now to inform JLog that the servo pulse is reverted (not inverted). att #4

All three items are learned by JLog and stored in its non-volatile memory, - changed if pulse.txt has content different from memory. No need to always have pulse.txt on a SD or to run w/ SD at all.

"max len": 3000 at max accepted
"min len" : 1600 at max accepted
"max" have to be less than "min", of course.

Attachment 5 is the new JLog firmware.

----------
Quote:
when you said it is working on your side - this means to me that you have reverse the servo direction
No, you have, definitely.
Attached Thumbnails
Click image for larger version

Name:	J26Nitro-1.jpg
Views:	139
Size:	67.3 KB
ID:	630709   Click image for larger version

Name:	J26Nitro-1_+_10-stage-antihazard.jpg
Views:	122
Size:	101.8 KB
ID:	630710   Click image for larger version

Name:	J26Nitro-2.jpg
Views:	129
Size:	70.4 KB
ID:	630711   Click image for larger version

Name:	J26Nitro-pulse.txt.png
Views:	119
Size:	6.5 KB
ID:	630714  
Attached Files
File Type: pdf 26-J_Essc-111.126.bin.pdf (60.0 KB, 82 views)
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 02:04 PM   #48 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

Forgot.. Device description files for LogView v2.

Strip the extension .pdf from file names.

.lov files are easier to use: open w/ LV, LV learns the device automatically.
Attached Files
File Type: pdf JLog26nitro.ini.pdf (4.1 KB, 58 views)
File Type: pdf JLog26nitroFmph.ini.pdf (4.1 KB, 68 views)
File Type: pdf JLog26nitro.lov.pdf (4.9 KB, 78 views)
File Type: pdf JLog26nitroFmph.lov.pdf (4.9 KB, 62 views)
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 07:15 PM   #49 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

Hi Tom - good news both fixes are good

1) Throttle% now handle servo Normal or Reverse direction

2) RPM seems spot ON - showing 810 RPM on the engine side while I was turning 100 RPM on the main gear.

Reading your previous post (extensive !) the only question I have is the maximum RPM. Since I am mesuring engine RPM, I will be in the 14000 RPM range - will this still work at this speed ?

Thanks again (3) - for the effort and dedication
mdu6 is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 08:03 PM   #50 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

14,000? Thought that you measure at the main gear?

I'll test 14,000 w/ a frequency generator (233.33Hz). I think it will work although the interaction with servo pulse measurement is getting stronger with increasing rpm pulse frequency.

I do that tomorrow. Local time is 3:03 AM, heading to Zzzzzzz...
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 08:26 PM   #51 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

What can you do today that do not put off till tomorrow.
Not only a German proverb, I believe.

233.33Hz == 14,000rpm
Picked a Graupner GR16 receiver as throttle pulse source, running standard 50Hz servo pulse frequency (20ms frame time).

Seems to work, my hazard filter does.
Attached Thumbnails
Click image for larger version

Name:	J26Nitro-50HzServo_14000rpm.jpg
Views:	129
Size:	80.0 KB
ID:	630800  
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 01-18-2016, 09:37 PM   #52 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

thanks !

I was (temporarily) measuring RPM at the main gear because it was an easier spot to put something together to double check the measure from the RPM sensor on the engine clutch.
mdu6 is offline        Reply With Quote Quick reply to this message
Old 01-31-2016, 03:59 PM   #53 (permalink)
Registered Users
 

Join Date: Feb 2014
Location: Littleton, Colorado
Default

I finally finished my Goblin 700 Gasser and tried this firmware (26-J_Essc-111.126). I am using a Stator Gator for the RPM pulse. Using a 5V regulator to power the Stator Gator, I get a RPM pulse 600uS wide and 3.5V in amplitude. Attached is a picture of what the pulse looks like. I attached a log file (log00053) of a 2 minute run at a constant throttle setting resulting in around 3432 RPM to 4118 RPM according to the governor. There was not much interaction between the RPM and Throttle data in this log file. However, I attached another log file (log00054) of a much longer run where I was varying the throttle some at idle and which resulted in not nearly good data. I selected 1 pulse per revolution and checked the Motor option (see Config file). Is there a better configuration to minimize the interaction between the RPM and Throttle data? Once I get the motor broken in I will typically run between 11500 RPM and 14000 RPM.
Attached Thumbnails
Click image for larger version

Name:	RPM Pulse.jpg
Views:	120
Size:	162.7 KB
ID:	633037   Click image for larger version

Name:	Throttle-RPM.jpg
Views:	117
Size:	94.6 KB
ID:	633038  
Attached Files
File Type: txt log00053.txt (99.1 KB, 63 views)
File Type: txt log00054.txt (1.34 MB, 59 views)
File Type: txt CONFIG.txt (145 Bytes, 70 views)
File Type: txt pulse.txt (11 Bytes, 67 views)
File Type: txt version.txt (35 Bytes, 74 views)
__________________
SAB RAW 700 Piuma - Synergy E5SS - Synergy N7 Gasser - Goblin 500 - T-Rex 450L (x2) - Oxy 2 - Spirit FBL - Jeti DS-16 G2
AccuRC to train my brain
FrankFuss is offline        Reply With Quote Quick reply to this message
Old 01-31-2016, 05:21 PM   #54 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

It doesn't look like interaction, it is the shape of the rpm pulse. That causes then some interaction on top, yes.

I told you that JLog is not prepared for pulse measurement on two pins of the OPT port simultaneously. Possible functional MCU-pin assignment ends up to land in the same pin change interrupt routine for both pulses. As a result the trick is to find out which one of the two pulse sequences (asynchronously, not in phase to each other) has triggered the interrupt. So we measure on both pins (high/low), wait a couple of nanoseconds, measure again. Afterwards both sequences are handled by hazard filters, checking the plausibility of changes in time.

That needs a clean pulse with steep edges. The shape of the low-high edge of the rpm pulse is more that of an analog signal than of a digital one.

That thing needs a Schmitt trigger to reshape the rpm pulse.

------
In parallel I will look for an alternative -- to be able to clearly separate both in two pin change interrupt routines. The crux is that this will need to use JLog's KOSMIK port, - special plug required.
(COM is occupied for Jeti telemetry, s.bus/s.port is pin-sharing w/ COM internally, SPEKTRUM port is pin-sharing with OPT port, the JLog port cannot be used because of decoupling components in pathway.)

------
rpm: Look, this is not a single hazard than multiple errors on the creeping low-high edge. Points on the round edge are considered as low/high, that way emulating non-existent high-low edges between which the time is measured to calculate rpm.
Attached Thumbnails
Click image for larger version

Name:	rpmPulse.jpg
Views:	104
Size:	46.2 KB
ID:	633047  
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 02-01-2016, 11:53 PM   #55 (permalink)
Registered Users
 

Join Date: Feb 2014
Location: Littleton, Colorado
Default

Thanks Tom for your help. The weather is too bad here at the moment to try it, but given the shape of my rpm pulse would I get good rpm data if I measured only rpm and not the throttle? Or, if I used one of the other standard firmwares and measured only the rpm?
__________________
SAB RAW 700 Piuma - Synergy E5SS - Synergy N7 Gasser - Goblin 500 - T-Rex 450L (x2) - Oxy 2 - Spirit FBL - Jeti DS-16 G2
AccuRC to train my brain
FrankFuss is offline        Reply With Quote Quick reply to this message
Old 02-02-2016, 03:39 PM   #56 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

Quote:
given the shape of my rpm pulse would I get good rpm data if I measured only rpm and not the throttle?
Hmm.., may be, just give it a try.

Quote:
Or, if I used one of the other standard firmwares and measured only the rpm?
Same question in the end.
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 05-25-2016, 03:13 PM   #57 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

Hi Tom

After finally being able to do some flying, I just wanted to report that everything worked out perfect ; engine RPM and Throttle servo position are both reported steadily thru the Jlog back to the Jeti Tx

Thanks again, Mario

Last edited by mdu6; 05-26-2016 at 06:59 PM..
mdu6 is offline        Reply With Quote Quick reply to this message
Old 05-26-2016, 03:01 PM   #58 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

Supi.
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Old 11-02-2016, 06:04 PM   #59 (permalink)
Registered Users
 

Join Date: Feb 2009
Location: Montreal
Default

Here is a sample Jeti Log - showing RPM and throttle position as captured by JLOG - very nice !
Attached Thumbnails
Click image for larger version

Name:	N7-RPM-Throttle.jpg
Views:	70
Size:	58.9 KB
ID:	678504  
mdu6 is offline        Reply With Quote Quick reply to this message
Old 11-02-2016, 08:06 PM   #60 (permalink)
Registered Users
 
Posts: 3,933
 

Join Date: Feb 2008
Default

Could look better (not the data, the drawing principally).
In addition, the update rate of data in a telemetry is slower than local log recording by JLog, - and data going into telemetry is made a bit "human-like", integrated.

Post the device ID of your JLog, please.
__________________
Tom (j-log.eu)
dl7uae is offline        Reply With Quote Quick reply to this message
Reply




Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the HeliFreak forums, you must first register.
Please enter your desired user name, your REAL and WORKING email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself. Use a real email address or you will not be granted access to the site. Thank you.
Email Address:
Location
Where do you live? ie: Country, State, City or General Geographic Location please.
Name and Lastname
Enter name and last name here. (This information is not shown to the general public. Optional)
Helicopter #1
Enter Helicopter #1 type and equipment.
Helicopter #2
Enter Helicopter #2 type and equipment.
Helicopter #3
Enter Helicopter #3 type and equipment.
Helicopter #4
Enter Helicopter #4 type and equipment.

Log-in


Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Copyright © Website Acquisitions Inc. All rights reserved.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.

SEO by vBSEO 3.6.1