↓
 

majek.sh

Marek Wodziński's home page

  • About me
  • LCD88
    • About
    • Features
    • Hardware
    • History
    • How it works
    • Posts about lcd88
  • R/C
  • Electronics
Home - Page 3 << 1 2 3 4 5 … 8 9 >>

Post navigation

← Older posts
Newer posts →

LCD88 – going public :-)

majek.sh Posted on Sunday June 22nd, 2014 by majekTuesday September 2nd, 2014

Last days I was learning how to use git instead of svn 🙂

I think it was worth to migrate LCD88 code from my personal repository to more public place, Github!
So, any further development will be there, I hope that it will be not only for downloading, but also you can contribute to project.
If you can’t code, there is also issue tracker, so you can request new feature, or simply report a bug. Starting forum threads is also planned 🙂

During repository move GPL license was also added, so feel free to use this code.

Repository url: https://github.com/majekw/lcd88

Another thing I’m making is separate part of my site dedicated only to LCD88. Someone could call it ‘documentation’ 🙂
Explore new menu item LCD88!

Posted in Electronics, R/C | Tagged lcd88 | Leave a reply

XEBOOT – tiny Amega8 xmodem bootloader

majek.sh Posted on Monday May 26th, 2014 by majekTuesday May 27th, 2014

Story

Few years ago I was working on some commercial device based on Atmega8. One of features was to deliver device with some software, but it should’ve been ready for further firmware updates by customer as well.

Burning some ready-made bootloader with STK or other proprietary protocol was not an option. Customer had only serial port adapter and that’s all. Operating system also could vary.

There was also another problem – device was quite simple, most of it’s power was in software. So, new firmware released to customer shouldn’t work with 3rd party hardware.
That way encryption was another ‘must be’ option for bootloader.

And last requirement – size. Program had some quite large tables burned in, so spending 2kB or more on bootloader was a waste of precious flash space.

So, I wrote bootloader myself 🙂

Last days I decided to release this code to public as after all these years there is still no small xmodem bootloader available and now I could do it.

Features

  • small size (less than 512B)
  • supported protocol: xmodem
  • pure serial operation (no other hardware or wiring than rx/tx is required)
  • support some kind of encryption (not strong, but it’s enough to prevent unexperienced user to just burn it into clone)
  • it’s free (GPL v3) 🙂

Code

You can download code from Github: https://github.com/majekw/xeboot
Technical details are also available in README on repository.

Fork

Yes, project evolved 🙂
It was forked to support Atmega88/168/328. I had to sacrifice encryption to fit it in 0.5KB, so it’s no longer xEboot.
Fork is currently part of my other project LCD88 (diy r/c transmitter) and sources are also available on Github repository: https://github.com/majekw/lcd88

Posted in Electronics | Tagged avr | Leave a reply

RTL-SDR and ADS-B

majek.sh Posted on Monday March 17th, 2014 by majekTuesday May 27th, 2014

I was searching Internet about FLARM and other possibilites to track small aircrafts, and how to use it in airplane models 🙂
Of course, I found another interesting thing which reminded me that USB DVB-T tuner with well known Realtek RTL2832U could be used as ADS-B receiver.
In short, ADS-B is some kind of beacon transmited by most larger aircrafts. Protocol is well described, so everyone who could receive such signals could also decode it and do something with it. Most known site using these data is flightradar24.com.

Simple ADS-B receiver application (rtl_adsb) is already included in rtlsdr library, but it outputs to console only received packets with at most brief protocol decoding. Because my old tuner with FC0013 can’t receive 1090MHz, so during testing new one I forgot to check this.

dump1090 by antirez

But today I found quite impressive software to receive and visualize data: dump1090 (https://github.com/antirez/dump1090) and I had to check it:-)

It compiled flawlessly with just a ‘make’.
Running it without any options gives similar results to ‘rtl_adsb -V’, so nothing special here 🙂

$ ./dump1090
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001 (currently selected)
Found Rafael Micro R820T tuner
Max available gain is: 49.60
Setting gain to: 49.60
Exact sample rate is: 2000000.052982 Hz
Gain reported by device: 49.60
*8d471f4e9941f28fa8948de31fa4;
CRC: 000000 (ok)
DF 17: ADS-B message.
  Capability     : 5 (Level 2+3+4 (DF0,4,5,11,20,21,24,code7 - is airborne))
  ICAO Address   : 471f4e
  Extended Squitter  Type: 19
  Extended Squitter  Sub : 1
  Extended Squitter  Name: Airborne Velocity
    EW status         : Valid
    EW velocity       : 497
    NS status         : Valid
    NS velocity       : -124
    Vertical status   : Valid
    Vertical rate src : 0
    Vertical rate     : -2304

*5d471f4e76710a;
CRC: 00002c (ok)
DF 11: All Call Reply.
  Capability  : 5 (Level 2+3+4 (DF0,4,5,11,20,21,24,code7 - is airborne))
  ICAO Address: 471f4e
  IID         : SI-28

*200014121f6bd2;
CRC: 471f4e (ok)
DF 4: Surveillance, Altitude Reply.
  Flight Status  : Normal, Airborne
  DR             : 0
  UM             : 0
  Altitude       : 31050 feet
  ICAO Address   : 471f4e

But it’s getting more interesting while adding options. First one is –interactive which gives human readable summary with data gathered sorted by aircraft.
Looks much better:
dump1090 with --interactive

Next interesting option is –net that enables few networking features. Most impressive is webserver with map and planes on it, moving real time!
web interface of dump1090

Interesting thing is that I receive this using only stock small antenna located near window. Tuner is able to receive without any special antenna signals from planes up to 250km from me – that’s amazing.

dump1090 by MalcolmRobb

And this is not the end! There is a fork of dump1090 made by MalcolmRobb with significant improvements.
On console in interactive mode there are additional information, for example Squawk (transponder) number and heading, displayed information is also more clear:

dump1090 --interactive by fork by MalcolmRobb

Web interface is also improved. Aircrafts now looks like planes, not like arrows/triangles, browser keeps history of positions, so a trail could be draw for each flight. There is also Openstreetmap support additionally to Google Maps used earlier.
web interface of fork of dump1090 by MalcolmRobb

web interface of fork of dump1090 by MalcolmRobb

There are also other improvements. For both versions of dump1090 I use also –agressive switch. On normal PC it’s not so intensive as author warns, so it could be added without hesitation because it really improves reception and doesn’t eat cpu.

One missing thing for me – submiting data to flightradar24 site. But don’t mind me – it’s more a wish than complaining. dump1090 is really good piece of software!

Posted in Electronics, Linux | Tagged ads-b, rtlsdr | Leave a reply

Bluetooth dongle from China :-)

majek.sh Posted on Sunday March 9th, 2014 by majekSunday March 9th, 2014

I’ve been using bluetooth headpones for few months and I like this ‘wireless’ feature. Only one issue bugs me – short range. Effectively it’s sbout 2-3 meters in my home 🙁
So, I came up with idea to buy external bluetooth dongle, preferably with external antenna to fix this problem.

I found such dongle on eBay for less than $2 (including shipping!). Yeah, real bargain. Description stated: “Operation range: 0-100m.”.
That was all what I needed:-)

After some time I received:
Bluetooth dongle
Looks good, moving antenna was a little weird, but I thought that I might broke it (cheap is cheap and easy breakable).

But I couldn’t resist do disassemble it 🙂
And then surprise came outside:
Bluetooth dongle inside

External ‘antenna’ was only piece of plastic. It was so ridiculous, so I even can’t blame seller or manufacturer for a good joke. Ha ha ha 🙂
So, it reminded me that there is no such thing as free lunch.
Problem unresolved.

Posted in Electronics, Life | Tagged china, fun | 2 Replies

2013 ended, 2014 is here

majek.sh Posted on Sunday February 16th, 2014 by majekSunday March 18th, 2018

It’s time to write something 🙂
On some other blog I saw that one man have problem: should he write more small things, or less but longer and ‘better’.
I think that I have similar problem. I’m still trying to make nice posts with wide coverage of topic, but it needs a lot of effort, sometimes few hours of work or even more. Making it in two languages simultaneously also doesn’t help:-) Meantime some small things are getting lost because I’m working on something ‘bigger’. And sometimes this way produces … nothing.

Ok, so this is an attempt to come back:-)

In bygone 2013 I made a lot of flights with my Tricopter, crashed it many times, installed FPV gear, tried few different version of MultiWii, even experimental PID by alexK (which is great!), I made hundreds GB of aerial footage (mostly boring:-) ). But it is a past now, the best way to go forward is to keep good memories and leave other things behind.

So, as a small reminiscence of 2013 another spectatular Tricopter crash (I flew it without FPV and made few almost rookie mistakes):

Lessons learned:

  • add LEDs to arms if you want to fly till a dusk or even during a night (I didn’t see orientation of Tricopter and that’s why I got lost)
  • MultiWii have HeadFree mode – use it! And of course check it right after start – it could easily save me then, but I panicked and forgot about this feature
  • GPS and RTH could be easiest rescue
  • buy insurance policy! (this time nothing happened, but it’s better to be on the safe side)

Enough about past, I think that you could be curious what could be next 🙂
So, that’s the list of things in queue to write about:

  • Tricopter yaw mechanism improvement
  • Hobbyking 3-Channel FPV Video Switcher – how it works (or not) and probably now to fix it
  • MINI MWC Flight Control Board and DSM2 Receiver ACC/GYRO/BARO/MAG – pins description and how to program it
  • OrangeRx Open LRS 433MHz 9Ch Receiver – how to program it and configure, why it’s enough to buy 2 RX modules instead of pair RX and TX
  • more about my DIY transmitter LCD88:
    • how to make DYI RC transmitter step by step (build log) using my LCD88 project
    • I’m thinking about moving code to Github
    • write more about LCD88, hardware options, how to compile, define models etc
    • abandon Atmega88 support and focus on Atmega168 and Atmega328

Small sneak peek of LCD88 in action:

Of course, if you need to see some topic earlier, just leave a comment 🙂

Posted in Life | Tagged crash, lcd88, tricopter, video | 1 Reply

Post navigation

← Older posts
Newer posts →
  • English
  • Polski

Recent Posts

  • Jeep Grand Cherokee ZJ electric fan
  • New 3D printer – vn-corexy
  • Classic keyboard for Lenovo X230
  • Changes, changes
  • Writing to internal FLASH on Arduino
  • dm-cache in Slackware
  • Christmas tree lamps with Arduino and WS2811 leds :-)
  • Initrd in Slackware
  • Picture thief
  • Soldering AWG10 wire to XT60 connector
  • LCD88 – going public :-)
  • XEBOOT – tiny Amega8 xmodem bootloader
  • RTL-SDR and ADS-B
  • Bluetooth dongle from China :-)
  • 2013 ended, 2014 is here

Recent Comments

  • demostenes on HobbyKing SuperSimple HK-18A and SimonK firmware
  • majek on Soldering AWG10 wire to XT60 connector
  • Hello on Soldering AWG10 wire to XT60 connector
  • wefwe on End of Rex 6000 era
  • Kudłaty on Frequency meter up to 100MHz
  • majek on Frequency meter up to 100MHz
  • somok on Frequency meter up to 100MHz
  • majek on Frequency meter up to 100MHz
  • AM Technologies on Frequency meter up to 100MHz
  • majek on LCD88: R/C DIY transmitter

Categories

  • 3D printing (1)
  • Car (1)
  • Electronics (22)
  • Life (12)
  • Linux (9)
  • R/C (20)

Archives

  • July 2022 (1)
  • January 2021 (1)
  • April 2018 (1)
  • March 2018 (1)
  • June 2015 (1)
  • March 2015 (1)
  • January 2015 (1)
  • December 2014 (2)
  • August 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • March 2014 (2)
  • February 2014 (1)
  • November 2013 (1)
  • August 2013 (1)
  • June 2013 (3)
  • April 2013 (1)
  • February 2013 (3)
  • January 2013 (2)
  • December 2012 (1)
  • October 2012 (1)
  • September 2012 (1)
  • August 2012 (9)
  • July 2012 (1)
  • June 2012 (2)
  • March 2007 (1)
  • March 2006 (1)
  • October 2005 (1)
  • February 2002 (1)

Tags

1-wire ads-b arduino avr awstats car china crash dialog diy dns e-osd e-wro fpv frsky fun g-osd gps głupota harpagan i2c lcd lcd88 linux logic analyzer multiwii netia osd ppm r/c repair rex.mamy.to rex6000 rtlsdr simonk slackware small things spectrum analyzer transmitter tricopter video video receiver vn-corexy watchdog xircom

Blogs

  • Blog Akuaku
  • Savage Chickens
  • xkcd

Friends

  • Belfer
  • Copernicus Project
  • freesco.pl
  • Harpagan
  • Sadziu
  • Tropiciel
  • Wydawnictwo Dobrew (audiobooki)
  • Wydawnictwo Muszkin

Hosting

  • mamy.to
©2025 - majek.sh - Weaver Xtreme Theme
↑