Skip to main content

An experimental Magnetic Loop driven by Android and a Stepper Motor - part2

 

So, I wanted to remote control the controller and potentially ditch the digital encoder. I did however manage to debounce the decoder both in hardware with 2 x 0.1uF capacitors across the input pins and 27 Ohm resistors in series with the switch contacts as discharging the capacitors through the decoder is going to damage the tracks and make things worse. I also switched to an ESP32 as it has built in WiFi and Bluetooth. 

Here is the video for this https://youtu.be/pH3pUaQW190

Here are  few of the videos that I took inspiration and code samples (refactored) from-

Kevin Loughin - Magnetic loop transmitting antenna overview and details.

Andreas Spies - Use your Arduino and ESP32/ESP8266 from your Smartphone. No Cloud! (RemoteXY)

                          - #226 ROTARY ENCODER with no switch bounce 🤓 - you MUST use this


From Andreas Spies video I decided this was an easy option rather than rolling my own Arduino app, you can do it for iPhones too. I made a form with a few controls on and was able to connect from the phone to the controller. The webpage at remoteXY.com provides the code for you, so you just have to plug a few variables in. I originally used a slider for fine control but then changed to coarse and fine buttons which increment and decrement the required position 'reqPos' by 5 or 1 respectively. 
I changed the code so that if looks at the difference between reqPos and curPos, the current position and does that number of steps to achieve it. This stops things getting confused so easily.

My code is on GitHub.

The final prototype board assembled and soldered.

rear of the prototype board

Note the two voltage regulators at the top (below) using the blue pins you can select 3.3v, 5v, or 12v (if you have a 12v input). I noticed one of these getting hot driving the motor so I added a 7805 5V 1Amp regulator in a TO220 package, 2 x 0.1uf 50v capacitors for stability and a Red LED and 200 ohm resistor on the 12v rail as an indicator.

Top of the prototype board, note 2 built-in regulators at the top

ULN2003 motor controller, I hot-glued the connections

The circuit, everything between dotted lines was already on the board

I added my own 7805 5V 1A regulator and 2x 0.1uF 50V capacitors for stability an LED and 200 ohm resistor.


I changed the main loop diameter to 2.6 meters and the coupling loop to 0.52 meters. I am still not happy with the SWR as it is around 8:1 unless I use my ATU which defeats the object, but the experiment goes on.

Please leave comments on my videos and I hope that you build at least part of this project.




















Comments

Popular posts from this blog

Setting up a PI-Star MMDVM hotspot node with a Raspberry PI

 The first thing is to download the Pi-Star software from https://www.pistar.uk/downloads/ , at time of writing the current version is Pi-Star_RPi_V4.1.5_21-Jun-2021.zip ,but you should get the latest available. I used a Raspberry PI 3B but it is possible to use a PI Zero W or other model. You should then use either Etcher, or the Raspberry Pi imager to copy the image to your SD card, which should be at least 4GB and Class 10 or better, I used a 16GB simply because they are available for little money these days. Simply put the SD card into your PI and attach a monitor and keyboard via USB connection. The PI should boot with the usual rainbow screen, the default login is pi-star and the password raspberry. We will change these soon. To find out what IP address your pi is on type ifconfig and hit return. If you are connected via ethernet you will be able to type http://pi-star.local into a browser and access the dashboard as below - This will redirect after 10 seconds and you will be pre

Baofeng UV-S9 - a practical user guide

Having bought one of these transceivers recently I was firstly disappointed in the User Manual, it is in extremely small print, barely 4 point and my first searches online brought a pdf of the same manual scanned badly which was not much of an improvement. Also it is a reference guide rather than a how-to. I think many people would prefer to learn how to use the radio as well as which buttons to press with context. I am only covering the basics as I think once you know those then you will figure out the rest using the two manuals I have linked to below. So here we go! The Baofeng UV-S9 Transceiver, around £25 on Ebay Caution, two things are very important to know before we begin. Firstly it is illegal to transmit on any band that you do not hold a license for. You must check with your licencing authority, which in the UK is Ofcom https://www.ofcom.org.uk. PMR446 is not currently legal for a radio which does not have a fixed antenna and it is illegal to use a Baofeng for this purpose. A

Xiegu G1M - FT8 and CAT control imcompatibility

 So, having set up WSJT-X and made up cables for the Xiegu G1M I did manage to make a couple of contacts, well four to be exact I had difficulty keeping Transmit mode open and there was some weird VFO A-B switching and delays happening. I was starting to get pissed off.  I had been using the WSJT-X config set up Icom IC-7000 and IC-765 Pro as other people where doing the same, not very satisfactory and very frustrating. After much digging I managed to find out more info on the Xiegu forum at https://groups.io/g/XIEGU-G1M/message/461 . Seems that FLRIG was more suitable that the built in controller in WSJT-X, so I downloaded it from  http://www.w1hkj.com/  and installed it prior to running WSJT-X. After an hour or more of trying other peoples recommendations of Icoms and other rigs I started afresh. To control a Xiegu we need Xiegu thinking. Of course the G1M isn't listed in the devices yet, but the G90 is. Surely we could make that work as most manufacturers use a specific chip in