Sunday, March 20, 2016

19th century radio technology meets the Beaglebone

In my last post, I described how I made a spark-gap transmitter and receiver. For the transmitter, I used a car's ignition coil to produce high voltage sparks, and for the receiver, I used a coherer to detect the transmissions. A coherer is a simple device - it consists of iron filings between two electrodes. Normally the filings have very high electrical resistance (tens of megaohms), but when the coherer detects electromagnetic waves, its resistance drops to about 10-20 ohms.

Back in the day, spark gap transmitters and coherers were widely used for wireless communication. One of the early pioneers in the field of wireless communication was  Arthur "Artie" Moore. He has a very interesting story. As a teenager, he built a steam engine using water-wheel driven lathe, and entered the model in a competition. He received as his prize a book by Sir Oliver Lodge titled "Modern Views of Electricity" which sparked his interest in the world of wireless. He, along with his friend Richard Jenkins, began to experiment with the ideas presented in Lodge’s book. They successfully built their own spark-gap transmitter and coherer receiver and taught themselves Morse code. Artie built a little radio station in his attic, and he would stay there all night listening to signals emanating from ships traveling the coastal waters around Wales.

Artie Moore's radio shack

In the early hours of 15 April, 1912, Artie received a faint Morse code signal on his coherer receiver:

"CQD Titanic 41.44N 50.24W."

CQD meant "come quickly distress."  In its next message, the ship also used the newer SOS signal -

"CQD CQD SOS de MGY Position 41.44N 50.24W. Require immediate assistance. Come at once. We have struck an iceberg. Sinking."

Artie was copying the signals, hardly believing the words he was writing. The final transmission he received was - "Come as quickly as possible old man; our engine-room is filling up to the boilers."

The RMS Titanic was sinking in the North Atlantic with more than 2,000 passengers and crew, and Artie was receiving the oceanliner’s final distress calls almost 3,000 miles away on his homemade radio. Artie continued to copy the increasingly desperate messages until the Titanic went silent about two hours after the first distress call.

The news of the disaster had not reached UK at that time, and no one believed Artie when he said that the Titanic was sinking. They thought that the Titanic was unsinkable. It was only two days later when it was announced in the national press, people realized he had been right. The receiving of these signals is believed to be the only land-based reception of the Titanic’s last transmissions in the UK, possibly the world.

Titanic's wireless room replica

The receiver

Getting back to our story, I built my own coherer in a vinyl tube with iron filings:

Iron filings coherer

A problem with the coherer is that once it gets activated, a physical tap is needed to reset it so that it can receive signals again. The system that resets a coherer is called a decoherer. I built a decoherer mechanism using a doorbell. Whenever the coherer gets triggered, it switches on a doorbell, and the bell's hammer hits the coherer and resets it.

Decoherer mechanism

The coherer cannot drive the bell directly, because it draws a lot of current. So, I use a transistor to amplify the signal from the coherer, and the transistor drives a small relay. The relay switches on the doorbell.

Receiver circuit

I connected the receiver to a Beaglebone to decode the received signals. I use an optoisolator to connect the output of the receiver to the Beaglebone. The optoisolator is an extra safety precaution to ensure that the Beaglebone is protected from any unwanted transients in the receiver circuit. I also added a flyback diode on the doorbell’s electromagnet to protect the optoisolator. Lastly, you’ll notice that there’s a brown capacitor in the doorbell to reduce sparking on the contacts. This is not necessary, but it should extend the life of the contacts.

The transmitter

In my previous post, I used a 555 timer-based ignition coil driver in my transmitter. I kept blowing the MOSFETs in that circuit from the inductive kickback produced by the ignition coil. So, I built the driver using a relay instead. The relay has been wired as an oscillator so that it turns the ignition coil on and off very quickly. This electromechanical driver is simpler and a lot more reliable. There's an automotive ballast resistor in the circuit to reduce the current on the primary side. I also salvaged a capacitor (aka condenser) from a car and put it across the relay's poles to reduce arcing on the relay. It's a standard ignition coil capacitor, and it filters out the inductive kickback coming from the coil.

Transmitter circuit (ignition coil driver)
Spark-gap transmitter

It is important to know that operating spark-transmitters is illegal because they create lots of RF interference. This transmitter can be operated without an antenna to keep the signals from going too far. 

Connecting the coherer to a Beaglebone and decoding Morse code!

I connected my coherer to a Beaglebone, and wrote some Python code to decode the messages it receives back to text (receiver circuit above explains the circuit connections). You can find my code here.

Here is a video of the system automatically decoding Morse code signals!

A strange phenomenon

While I was testing my program with the coherer, a loose wire in the receiver's circuit got disconnected, and the decoherer (bell) stopped working. To my surprise, I noticed that my program continued to receive the signals I was sending, and it was even correctly decoding them back to text! How could the system work if the decoherer wasn't even resetting the coherer? I disconnected the Beaglebone from the receiver, and just kept the interface circuit (the optoisolator) connected to it. Now, the receiver wasn't even connected to the Beaglebone. I started sending signals with my transmitter, and to my surprise, the same thing happened again. The Beaglebone was receiving the signals and decoding them! It took me a moment to realize that I had accidentally built a crystal radio (aka cat's-whisker radio). The LED inside the optoisolator was receiving the RF from the spark transmissions, and lighting up. The photo-transistor darlington pair in the optoisolator was amplifying this weak signal, and this was changing the state of the Beaglebone's GPIO pin. How interesting!

This "unintentionally made" crystal radio receiver doesn't have a very good range (only a couple of feet), but I’m sure it could be improved upon to make a more sensitive receiver (and without any mechanical parts).

I hope you enjoyed this project as much as I did. I'd love to hear your thoughts and comments.

EDIT: There is a better explanation for the strange behavior of the 4N33 optoisolator. I received this comment from Perry Harrington on Hackaday:

"If you look at the 4N33, the base of the darlington pair is brought out to a pin. This pin is left necessarily floating, but a darlington pair has typically a ~10,000 gain, so even a small current on this floating base will result in the pair amplifying a current. The bias transistor will have 3.3ma of current flow through it when fully triggered. My experience with 3.3v logic is that it has a ~2.7v input trigger threshold, so you’re looking at about 2.7ma flowing through the darlington to trigger the BBB. If my math is right, it would take about 270na of stray current to trigger the darlington of the optoisolator without a current being present on the LED.

You could probably replicate the results with a TIP120 wired up the same, with the base pin floating. If you are using a breadboard, the grid tie it is connected to would act as an antenna."


Arvind Derhgawen said...

Thoroughly enjoyable and educational project ☺

Tahseem Qureshi said...

Great Ashish, Keep it up Man!

Tom Boyd said...

Really enjoyed this... ticks all sorts of boxes for me. "Can I do it myself?" in particular, I suppose.

Also the way it was written up. Great "story", evolves... and even has a "twist in the tale" in the last "chapter".

And so many elements familiar to all Right Thinking People. The puzzles that arise. The over-coming of same... leading to the NEXT puzzle, etc.

The historical bit. The working backwards from fancy MOSFETs (which blow) to old skuel relays which Just Work.

Should be mandatory reading for every university Engineering 101!!!

The book by Lodge can be downloaded...

... or you can buy a copy, either in modern reprint (about $10) or an original... even one copy that was specially bound as a school "prize". Search at

You've come a long way from a kid re-purposing floppy disk drives!

JJ said...

Really enjoyed this article.

Unknown said...

Hello such , I would like to work with a project that has previously . I am looking forward to your response. Greetings.

Amazon Reviewer said...
This comment has been removed by a blog administrator.
Unknown said...

The geographic area that is now the country of Jordan was for centuries a sparsely populated and highly tribalized desert region within the lurkish-controllcd Orcoman Empire, the population is overwhelmingly Arab and Sunni Muslim, although Christian Arabs,The New Jordans, Circassians, and other minorities have lived in this area for centuries. The Ottoman sultan in Istanbul was the ulrimate source of power for this political system, but he remained a distant figure who usually did little to help develop this highly impoverished portion of the Empire. The Ottoman authorities were feared more than admired by the desert villagers and townspeople of this region for rheir policy of conscripting local men into the Ottoman army for long periods of service. Such losses were an added hardship for Arab tribes and families attempting to make a meager living in a harsh desert environment. I he loss of young men to the Ottoman militarv reduced the number of individuals available to help provide for the subsistence of these areas and, more importanrly,Jordans Shoes, reduced the ability of local defenders ro fend off atracks by tribal raiders or brigands.

Ottoman control of vast tracts of Arab territory ended as a result of the Empires defeat in World War I and the subsequent dismemberment of former Ottoman territory by the victorious Allied powers. As part of this transition, the country now known as Jordan began irs separare political existence as Transjordan, a British League of Nations mandate established in 1921. Transjordan began its unpromising existence with arbitrary borders established without significant regard for the population and with few natural frontiers except the Jordan River,Retro Jordans, which was used as the boundary with the western portion of the Palestinian mandate, also established after World War I. Transjordan was created as a separate political enticy from Palestine on the initiative of key British leaders,jordan releases, including then-Colonial Secretary Winston Churchill. As such, it was not subject to Jewish immigration, which was allowed in Palestine in accordance with the 1917 Balfour Declaration. The country was established with British aid with the expectation thar it would help support the interests of the United Kingdom within the Middle East as a friendly client state garrisoned by British-trained and led local forces rather than significant numbers of British troops.

Unknown said...

Super. Respect...

yllawwally said...

Could it be triggered by something other than a spark gap. Did try using an R/C transmitter, to see if it could trigger the coherer?

Ashish Derhgawen said...

Yes, it could be triggered by other RF sources. I've been able to trigger the coherer with my VHF handheld transceiver.

Unknown said...

used maruti suzuki swift cars in mumbai

Furniture World said...

Really nice and informative blog, keep it up buddy…Thanks for sharing. Living Day

مؤسسة سما المثالية0535609607 said...

افضل شركة كشف تسربات المياه بالاحساء

hewaidashalaby said...

هل تبحث عن شركة متخصصة فى خدمات التنظيف بالطائف بافضل المعدات والسوائل وثقة تمة فى العمل ودقة فى النتائج كل هذه المميزت توفرها شركة الخليج الشركة الافضل والامثل فى الخدمات المنزلية بالطائف وبما اننا الشركة الافضل والامثل بدون منافس سوف نسعى لتوفر افضل الخدمات باقل تكلفة وبقدر كبير من الاهتمام والدقة عزيزى اينما كنت فى اى منطقة ا وحى تابع لمدينة الطائف اتصل بنا وسوف نصلك فى الحال شركة الخليج للخدمات المنزلية شركة تنظيف منازل بالطائف
شركة تنظيف فلل بالطائف
شركة تنظيف خزانات بالطائف
شركة تسليك مجارى بالطائف
شركة رش مبيدات بالطائف
شركة مكافحة نمل ابيض بالطائف
شركة مكافحة حشرات بالطائف
شركة عزل اسطح بالطائف
شركة عزل خزانات بالطائف

hewaidashalaby said...

( نقدم لكم بعض الخدمات فى الاعمال المنزلية الممثله فى التنظيف الشامل للمنزل ومكافحة الحشرات وعزل الاسطح وكشف تسربات المياة ونقل الاثاث بكل انوعه كل ذلك يساعد فى الحصول علي مظهر رائع بواسطة افضل الفنيين والمتخصصين فى هذا المجال باستخدام احدث المعدات)
شركة عزل اسطح بابها
شركة كشف تسربات بابها
شركة تنظيف خزانات بابها
شركة مكافحة حشرات بابها
شركة عزل اسطح بخميس مشيط
شركة كشف تسربات بخميس مشيط
شركة مكافحة حشرات بخميس مشيط
شركة تنظيف منازل بالطائف
شركة نقل عفش بالطائف

hewaidashalaby said...

شركة رائدة فى مجال التنظيف حيث انها تقوم بكافة انواع التنظيف مثل الفلل والشقق والبيوت والشركات , كما ننظف ايضا السجاد والموكيت كل ذلك بأفضل المعدات وأمهر العمال , فنحن نعمل تحت خطة عمل مميزة مما يجعلنا الافضل فى هذا المجال , لاتتردد فى الاتصال بنا وكن واحد من عملائنا الكرام ونحن نضمن لكم سرعة العمل والجودة عالية شركة تنظيف بالطائف
شركة مكفحة حشرات بالطائف
شركة نقل اثاث بالطائف
شركة تنظيف خزانات بالطائف
شركة تنظيف منازل بالطائف
شركة عزل اسطح بالطائف
شركة عزل خزانات بالطائف

Unknown said...

Thanks for accepting the comment. And help to publish my site.
شركة تنظيف فلل بالرياض
شركة تسليك مجارى بالرياض
تسليك مجارى بالرياضlevel
شركة رش مبيدات بالرياض
شركة رش دفان بالرياض
شركة مكافحة الفئران بالرياض

على جمال said...
شركة تسليك مجارى بالرياض
عندما تستعين بشركة متخصصة في عمل التنظيف الخاصة عندما تكون الشركة لها سمعة طيبة في مجال التنظيف ستحصل على منزل براق وأرضيات و حوائط نظيفة تماما مع الحفاظ على ألوانها من مواد التنظيف لنظافة شيئا ضروريا وخاصة عند تواجد اطفال صغار يخشي عليهم من الاتربة
شركة تنظيف واجهات بالرياض
شركة تنظيف مساجد بالرياض
شركة تنظيف بيوت شعر بالرياض
شركة تنظيف وصيانة مسابح بالرياض

ركن كلين said...

شركة مكافحة حشرات بالرياض
الحشرات الضارة قد تقوم بالضرار او الامراض ولكن عليك مكافحة تلك الحشرات من بق الفراش ،الصراصير ، النمل بكل الانواع ، الفئران والقوارض ، مكافحة الوازغ ، مكافحة الحشرات الطائرة من ناموس وهاموش و ذباب ،ايضا مكافحة الحمام
شركة مكافحة الفئران بالرياض
شركة مكافحة الثعابين بالرياض
شركة مكافحة النمل الابيض بالرياض
شركة مكافحة الحمام بالرياض
شركة رش دفان بالرياض
شركة رش مبيدات بالرياض

Clipping Path Service said...

Clipping path is a must for any kinds of product images. Clipping Path Service can provide you with your desired product with a high-end view which will help you to attract both the organic customers and paid to add customers. Do clipping path for your business growth and show your customers what you have!

شركة رواد الحرمين said...

شركة رواد الحرمين الموقع الرائد فى عالم الخدمات المنزليه والاول بالمملكه العربيه السعوديه
لما يتمتع به من خدمات مميزه ، فالبرغم من اننا مؤسسه ربحيه الا ان
مزاولة نشاطتنا كلها مرتبط على نحو وثيق بتلبية

شركه عزل فوم بالدمام

شركه تنظيف منازل بالدمام

myhuonglequyen said...

Thanks for sharing, nice post! Post really provice useful information!

Giaonhan247 chuyên dịch vụ vận chuyển hàng đi mỹ cũng như dịch vụ ship hàng mỹ từ dịch vụ nhận mua hộ hàng mỹ từ trang ebay vn cùng với dịch vụ mua hàng amazon về VN uy tín, giá rẻ.

ghitas said...

شركة تنظيف بالخبر
شركة تنظيف منازل بالخبر
شركة تنظيف فلل بالخبر
شركة تنظيف مجالس بالخبر
شركة تنظيف خزانات بالخبر
شركة مكافحة حشرات بالخبر
شركة مكافحة نمل ابيض بالخبر

المتوكل على الله said...

شركة تنظيف مكيفات بالرياض
تمتلك افضل الطرق والمعدات في تنظيف الواحدات الداخلية والخارجية للمكيفات توفر تنظيف المكيفات الاسبلت الكاست شركة غسيل مكيفات توفر خدمة تعبئة الفريون بسعر مميز نظافة المكيفات تساعد علي رفع كفاءة التشغيل مرة اخري.

المجالس تعتبر من أهم الأغراض المنزلية والمكتبية المستخدمة في مكان وهي تأتي بعدد كبير من الأشكال والأحجام والألوان المتنوعة التي تجعل تنظيفها صعب ومرهق في الكثير من الأحيان ؛ ولكننا عبر شركة تنظيف مجالس بالرياض نُقدم إلى كل ربة منزل الحل الأمثل من خلال أفضل خدمات تنظيف المجالس العميقة والشاملة القادرة على إزالة أصعب البقع والعلامات بسهولة فائقة ، حيث أن الشركة قد قامت باستيراد أفضل الأجهزة والمعدات وخوصًا آلة التنظيف بالبخار التي تعطي أفضل مستوى نظافة على الإطلاق ، ونحن نقوم اولًا بتحديد نوع المجالس ومن ثم اختيار طريقة التنظيف المناسبة حتى لا يتعرض إلى أي تلفيات أو أضرار ، وكل ذلك مُقدم لكم بأقل الأسعار على الإطلاق مع العديد من الخصومات والتخفيضات الهائلة.

تضطر ربات البيوت إلى قضاء أوقات طويلة في تنظيف الشقق ومع ذلك لا تصل إلى درجة النظافة المطلوبة ؛ ولذلك فقد قررت شركة تنظيف شقق بالرياض أن توفر على كل امرأة كل هذا العناء وأن تُقدم لها خدمة تنظيف جميع أنواع الشقق سواء العادية أو الدوبليكس أو المفروشة أو الحديثة والتي لا زالت تحت الإنشاء أو غيرها بأقل وأرخص الأسعار على الإطلاق.

نقدم خدماتنا شركة تنظيف موكيت بالرياض مثل غسيل الموكيت والسجاد وغيرها فالهدف الاول هو راحة العملاء و اكتساب ثقتهم مهما تكلف الامر مع ضمان جودة الخدمات المقدمة سرعة انجازها بكل سهوله و امان و على احدث و افضل الاساليب.

بالطبع يكون عمل تنظيف المساجد أكثر صعوبة حيث أن المساجد هي بيوت الله تعالى ومن الضروري أن تبقى مفتوحة دائماً لأداء الصلوات الخمس وعلي الشركة إتمام مهمة تنظيف الموكيت في أسرع وقت ويتم تجفيفه أيضا حتي يصبح جاهزاً للفرش والصلاة عليه في أوقات الصلوات الخمس دون تأخير .
شركة تنظيف مساجد بالرياض

ghitas said...

شركة تنظيف بالخبر
شركة تنظيف منازل بالخبر
شركة تنظيف فلل بالخبر
شركة تنظيف مجالس بالخبر
شركة تنظيف خزانات بالخبر
شركة مكافحة حشرات بالخبر
شركة مكافحة نمل ابيض بالخبر

ghitas said...

شركة مكافحة حشرات بالقطيف

شركة مكافحة النمل الابيض بالقطيف

شركة عزل اسطح بالقطيف

شركة كشف تسربات مياه بالقطيف

شركة عزل خزانات بالقطيف

شركة تسليك مجاري بالقطيف

Vương Trùng Dương said...

Thank you for share!!!
Dịch vụ vận tải như: Vận chuyển hàng hóa bằng đường sắt, vận chuyển ô tô đường sắt, vận chuyển xe máy bằng đường sắt hay vận chuyển container lạnh cùng với đó là vận chuyển container bằng đường bộ mà Ratraco Solutions cung cấp tới khách hàng vô cùng uy tín, chất lượng và giá rẻ.

Unknown said...

Benjamin Briel Lee was very professional at all times, keeping me aware of everything that was happening, If I had any questions he was always available to answer. This was my first home purchase, I didn’t know much about the loan process, he made it very easy to understand the things I had questions about. I really enjoyed working with him.”  
He's a loan officer working with a group of investor's who are willing to fund any project or loan you any amount with a very low interest.Contact Benjamin Briel Lee E-Mail:  Whats-App Number: +1-989-394-3740.

عبدالله هادى said...

شركة مكافحة الحمام بالرياض
شركة مكافحة الذباب بالرياض
شركة مكافحة الثعابين بالرياض
شركة مكافحة النمل الاسود بالرياض
شركة مكافحة بق الفراش بالرياض
شركة رش مبيدات بالرياض
شركة رش دفان بالرياض

Amazon my tv said...

Through - how you can connect your mobile phone to Amazon Prime. Through, you can watch your favorite TV shows, series movies. You can watch prime videos anywhere on your device. Users need to create an Amazon account if they don’t have an Amazon account and enter the Amazon my TV activation code to watch Amazon prime videos on your device. |

عبدالله هادى said...

شركة تنظيف مكيفات بالرياض
شركة تنظيف كنب بالرياض
شركة تنظيف خزانات بالرياض
شركة عزل خزانات بالرياض

sarah rita said...

Powerful Herbal treatment is 100% guarantee for HSV cure, the reason why most people are finding it difficult to cure HSV 1 or 2 is because they believe on medical report, drugs and medical treatments which is not helpful to cure HSV and hasn't proved any sign of helping. Natural roots/herbs are the best remedy which can easily eradicate herpes forever. I never believed it until I was helped and cured of my 16 months genital herpes with natural herbal medicines from Dr OBUDU. Where other medical prescribed drugs and treatments failed, Dr OBUDU natural herbs helped saved me from Genital herpes permanently and I’m so grateful for this. You can also get help from this great and powerful Herbalist Dr OBUDU by reaching him on whatsApp +2349023428871 also EMAIL: or visit his website

آدم said...

شركة تنظيف منازل بالاحساء
شركة تنظيف مكيفات بالاحساء
شركة تنظيف موكيت بالاحساء
شركة تنظيف خزانات بالاحساء
شركة رش مبيدات بالاحساء
شركة مكافحة حشرات بالاحساء
شركة مكافحة الصراصير بالاحساء
شركة مكافحة النمل الابيض بالاحساء

آدم said...

شركة رش مبيدات بالرياض
شركة مكافحة صراصير بالرياض
شركة مكافحة فئران بالرياض
شركة مكافحة النمل الاسود بالرياض
شركة مكافحة النمل الابيض بالرياض
شركة مكافحة حشرات بالرياض أقوى أنواع المبيدات

Best Car Editing said...

Wonderful article. It's very useful. I think it's one of the most informative Websites. I really appreciate your post. Thanks, Car Photo Editing,
Vehicle Image Editing,
Automotive Dealer Image Editing,
Car Background Replacement,
Car Shadow, Reflection Shadow,
Photo Retouching,
Color Correction,
Motorcycle Photo Editing, If you want, You can visit this site.

Kreb said...

I am very impressed with your article it really uses full information provide thanks for the giving this wonderful blog such a great posting.
Buy Methadone 5mg
Buy Methadone 10mg
Buy Roxicodone 15mg
Buy Roxicodone 30mg
Buy Oxycontin 40mg

Kreb said...

Pretty good post. I have really enjoyed reading your blog posts.
Buy Tramadol 50mg
Buy Tramadol 100mg
Buy Tramadol 200mg
Buy Morphine 15mg
Buy Morphine 30mg

Best medication overnight delivery in usa said...

Super fast delivery process to buy methadone 5mg oral tablet is used to manage moderate to severe pain. It’s only given when other short-term or non-opioid pain drugs don’t work for you or if you can’t tolerate them. buy methadone 5mg is also used to manage drug addiction. If you have an addiction to another opioid, your doctor may give you methadone to prevent you from having severe withdrawal symptoms.
Order methadone 5mg online
Order morphine 30mg online
Order norco 10mg online
Order opana 40mg online
Buy oxycontin 40mg online
Buy oxycontin 80mg online
Buy Percocet 10-325mg online

my services said...

اسعار مغاسل الرهدن
غسيل سجاد توصيل الدمام
جنة المملكة
كيف انظف مروحة الشفط للمطبخ
مكيف سبليت
جهاز طارد الناموس من ساكو
شركة مكافحة النمل الابيض بالاحساء
طريقة لطرد الفئران
شبك حماية من الطيور
شركة مكافحة حشرات غرب الرياض