PostFrontal Forum
PostFrontal Forum
PF Home | International_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?


 All Forums
 LK8000 International Support
 General Support
 LK Alarms Speech Synthesis
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 02/06/2019 :  00:28:46  Show Profile  Visit andydasmith's Homepage  Reply with Quote
I've built an arduino stepper-motor vario and would like to use it's audio to make announcements of LK alarms. I think I can modify the LK SOUND_TABLE.TXT to output NMEA serial words that are recognized by my vario and make the correct announcement. I'm most interested in AIRSPACE_WARN, AIRSPACE_INSIDE and FLARM targets at first.
My problem is that I'm not able to determine by reading the SOUND_TABLE.TXT file which alarm does what. Here's a few lines from the file:

DROPMARKER=BSD 784 100 392 100...//ok, makes sense, Bluefly goes beep!
LK_3HITONES=BSD 784 100
LK_AIRSPACEV3=BSD 784 100......//Inside?
LK_AIRSPACE=BSD 784 100........//NEAR?

Can't find which are the alarms for FLARM targets

LK_SONAR_H5=BSD 784 100./think this is for airspace/altitude proximity
LK_T1=BSD 784 100...//Target 1?
LK_T2=BSD 784 100.../Targets 2?
LK_T3=BSD 784 100
LK_T4=BSD 784 100
LK_T5=BSD 784 100
LK_T8=BSD 784 100

I've tried looking through the code without success

AlphaLima
Moderator

Germany
1881 Posts

Posted - 02/06/2019 :  08:53:35  Show Profile  Visit AlphaLima's Homepage  Reply with Quote
There is no Alarms for Flarm targets. Trafic alarms is a job for dedicated FLARM devices not for a Navigation device.
But you can use the FLARM NMEA Stream for Alarm signaling.
Go to Top of Page

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 02/06/2019 :  18:36:44  Show Profile  Visit andydasmith's Homepage  Reply with Quote
Hi AlphaLima, thanks for the quick reply. I've got my system working by editing the SOUND_TABLE.TXT file. I have speech announcements for DROPMARKER, GPSNOFIX working from KOBO/LK8000. I'm hoping that airspace proximity announcements will work, code is written but I haven't been able to test yet.

At our club we are hoping to fit our club gliders with low-cost vario navigation systems. The stepper-motor audio vario is open-source (code and 3d printer files) with components costing around 20 euros. It uses an MS5611 and ADXL345 accelerometer. I've been flying with it for around 200 hrs. GPS is provided by T-beam SoftRF Flarms connected to Kobos. Sound alerts would be very desirable to complete the system.

I looked at the XCS code and found GCE events for AIRSPACE_NEAR and AIRSPACE_INSIDE so I'm hopeful that LK_AIRSPACEV3 or LK_AIRSPACE events will work.
I also found gce events FLARM_TRAFFIC and FLARM_NEWTRAFFIC
I see that FLARM targets are displayed in great detail by LK8000, I would just like to be able to draw the attention of pilots to them to improve safety.

Would it be possible for me to request an LK8000 event for NEW FLARM TRAFFIC?
Go to Top of Page

ernst-dieter
Falchetto

Germany
199 Posts

Posted - 03/06/2019 :  07:51:03  Show Profile  Reply with Quote
Andy, could you give us some details about your project please
Go to Top of Page

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 03/06/2019 :  18:15:17  Show Profile  Visit andydasmith's Homepage  Reply with Quote
Hi Earnst, I'm uploading a video to YouTube now, its a bit shaky but it shows what I've been up to. The vario has a 5611 pressure transducer, ADXL345 accelerometer, X25 stepper motor, Easydriver stepper motor driver, Arduino Uno ATmega328P and LM386 audio amplifier. These are all breakout boards from ebay and they are connected by jumper wires on a circuit board.
I designed it for our club because the available commercial varios have lots of features which are difficult for pilots to use in the air. It has no volume control because that was the most common complaint from pilots, they need a manual to turn existing varios up! It beeps when you are in lift and burps when the sink is more than 4kts. If you are cruising its silent, but these numbers can be changed easily in the open-source software. I've been using it in my Ventus 2cxt for a couple of years and I find it does the job. I fly block speeds and just speed up when I hear burps and slow down when I hit lift. The accelerometer gives early indication of lift and allows the sink indicated when pulling G to be eliminated. The gain can be adjusted in the software as it can be slightly different for each installation. The vario has both Kalman and second-order damping.
Having an Arduino allows access to the huge library of open source software so I've added speech synthesis. This makes an LK8000/Kobo system attractive as it lacks sound. It looks like the airspace announcements in LK8000 are now working.
I fly in the Cotswold hills in the UK at the Cotswold Gliding Club, so its called the Cotswold Club vario. Its open source and the 3d files for the front and back panels are available.
Here's the link for the video https://www.youtube.com/watch?v=LTBqkI74g3Y&feature=youtu.be

Go to Top of Page

ernst-dieter
Falchetto

Germany
199 Posts

Posted - 05/06/2019 :  08:16:10  Show Profile  Reply with Quote
Andy, very nice!

Cold you please put an idiot proof description for reproduction purposes anywhere on the net if nothing to be said against it. I think a lot of clubs (mine too) would be very grateful!
Go to Top of Page

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 06/06/2019 :  15:56:50  Show Profile  Visit andydasmith's Homepage  Reply with Quote
Here's a couple of pics of another unit with 3d printed front and back. These are joined by aluminium case halves. If anyone wants to make one I've got some meter faces printed which stick to a plastic plate. The needle is cut from a piece of plastic straw (get them before they're banned!). I tried to make a drawing with Fritzing but it was taking too long. Here's a pic of a sketch for now.
https://www.dropbox.com/s/849l2qgk76m3a1g/20190603_142050%5B1%5D.jpg?dl=0
https://www.dropbox.com/s/0xl8dpbrr6iszra/20190603_142129%5B1%5D.jpg?dl=0
https://www.dropbox.com/s/5fot4hloppey13k/20190606_141128%5B1%5D.jpg?dl=0
Go to Top of Page

ernst-dieter
Falchetto

Germany
199 Posts

Posted - 07/06/2019 :  10:06:21  Show Profile  Reply with Quote
Not bad for a start, but a BOM and the ino would also be helpful
Go to Top of Page

AlphaLima
Moderator

Germany
1881 Posts

Posted - 07/06/2019 :  10:35:59  Show Profile  Visit AlphaLima's Homepage  Reply with Quote
Guys you're OT!
Go to Top of Page

brunotl
Pterodattilo

France
742 Posts

Posted - 07/06/2019 :  11:10:48  Show Profile  Reply with Quote
very nice !

two question :
- why don't drive X25 stepper directly from nano ?
- have you planned to publish firmware source ?
Go to Top of Page

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 07/06/2019 :  17:58:00  Show Profile  Visit andydasmith's Homepage  Reply with Quote
Hi brunotl, I started by trying to drive the X25 stepper motor directly but couldn't get it to work reliably. An Arduino Uno was able to drive the motor slowly but the Nano couldn't manage much more than a few twitches. The Easydriver is built for the job and can supply 12v to the motor, even then you must be careful not to overdrive else steps will be missed. To get fast accurate response a stepper motor is a good solution.
Yes, I'll publish the firmware (.ino). I'm a hacker and would like to see others develop the platform further. To try to stop pilots landing our K21s with the brakes on hard and tipping the glider onto it's nose I'm planning to use one of the spare digital inputs and the speech function to warn that the wheel brake is on. I'm sure that there will be lots of ideas like that.
I'll put a BOM on this thread soon, the firmware is too long for this forum but its only using half of the Nano328P programming space.

Edited by - andydasmith on 07/06/2019 18:30:12
Go to Top of Page

andydasmith
Pulcino

United Kingdom
44 Posts

Posted - 07/06/2019 :  18:29:30  Show Profile  Visit andydasmith's Homepage  Reply with Quote
Here's the BOM

Micro Audio Amplifier Module Board Mono AMP Module HIFI DIY LM386 DC 5V-12V

X25.168 X27.168 Instrument Cluster Stepper Motor Gauge

8ohm 8#937; 1W 2W Audio Speaker Stereo Woofer Trumpet Horn Loudspeaker 40mm

A3967 Module EasyDriver Shield Stepping Stepper Motor Driver For Arduino

LM2940CT-12 LM2940CT 12V TO-220 Voltage Regulator

RJ45 Network Ethernet 8P 8C Female Socket Connector 8Pin PCB Mount

Arduino Nano ATmega328P V3.0 with CH340G 5V 16M compatible + Headers

ADXL345 3 Axes Digital Acceleration Accelerometer Tilt Module GY-291 Arduino

12 x 5.5cm DoubleSide Protoboard Circuit Universal DIY Prototype PCB Board (cut from larger piece)

Stainless Bulkhead Fitting Barb Hose Tube Connector

GY-63 Mini Size MS5611 High-Resolution Digital Pressure Transducer

100kohm potentiometer

470 microFarad electrolytic capacitor, >20v

Edited by - andydasmith on 10/06/2019 13:48:42
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.27 seconds. Snitz Forums 2000

Suggerimenti dello staff:

                                         

Note legali (italiano):
Privacy Policy Cookie Policy
Legal notice (english):
Privacy Policy Cookie Policy

PostFrontal S.A.S. di Giuliano Golfieri & c. - P.I. 05264240960