I bought an Arduino Due a while back, and not having anything seriously pressing, it was set aside for other things.
The Due has a lot of differences from other Arduinos for various reasons. The stuff you'll see on most websites leads with "it's 32 bits and runs at 3.3 volts!". And those are important - any non-EE like me using an Arduino thinks at 5 volts, and in some cases you can blow up a Due with that much voltage. But there are more important differences:
- 4 serial connections
The Mega has 4 also, but the Uno and Leonardo have 1. Some things, like GPS receivers and the APRS Shield use serial connections, so this is a more-is-merrier situation.
- 2 I2C channels broken out and labeled
All of the Arduinos have I2C interfaces, but they are not labeled on the Uno, Leonardo, and Mega. Really, this is just an inconvenience because you can look up the correct pins. The Due labels them so you don't have to look them up, and the Due is the only current Arduino board that has two I2C interfaces.
I2C is useful for a lot of sensors, including temperature sensors, EEPROMs, real-time clocks, digital compass modules, and DACs.
- 2 Digital-Analog Converters (DACs)
On the Uno, Leonardo, and Mega, there are no DAC converters - the analogWrite command writes to PWM outputs on those processors and that output is still 5V, but the output is a square wave that makes some things (like LEDs) look like you've reduced the voltage, when really you've reduced the amount of time that the voltage is on. Wikipedia has a longer explanation.
DAC converters do not output a PWM signal. Instead the actual voltage is output, so if you give a 3.3V DAC a command corresponding to 50%, it will output 1.65V DC (NOT PWM!).
- Controller Area Network (CAN) breakouts
CAN is mostly used in vehicles in part of the On Board Diagnostics (OBD-II) system, but it is being adopted elsewhere. It's adoption may continue with increased adoption of the Internet of Things.
- Digital Signal Processing
Perhaps one of the more interesting parts of the board where amateur radio is concerned is that the main chip (where all the magic happens) is powerful enough (between being 32 bits and 84 MHz) that it can do Fast Fourier Transform operations as well as number crunching operations. Since there are both ADCs and DACs, an analog input can be sampled to digital data, processed, and then output through the DAC back to an analog waveform. See an example at M0XPD's blog. This also enables the use of the Due as an SDR (another link to M0XPD's blog).
I'm going to be doing a lot more here with the Due, so this should break me out of the no-post-slump I've been in.
If you currently use a newsreader (e.g. Feed.ly) to get my blog OR you have it as a feed on your website, please check your URL and ensure it is going to ke8p.us. The ac8jo.us domain will be disappearing in about 2 months and I don't intend to renew it.
RSS URL: http://www.ke8p.us/feed/
In 45 days (around September 19), I will be changing the domain over to a different page and breaking anything that starts with ac8jo.us.
Thanks to the good service of UPS (that's with one S, not that other group that leaves my parts sitting somewhere in Chicago for three days), I am now the proud owner of a solder station.
The sound from it is not too loud with the blower on, and of course when the blower is off there is no noise. It heats up VERY quickly, too. I'm used to my cheap old Radio Shack pencil iron taking 5+ minutes to heat up, and this heated up in about 30 seconds.
The temperatures are in Centigrade, so it'll be something to get used to, but no big deal. And it was $50 via eBay (the link now goes to a more expensive item by the same seller).
Today, I got to drive home without windshield wipers in a rainstorm. Fortunately, no crashes and no tickets.
The problem has been a lingering problem and even slowed my drive to work last week because I had to stop and shake the connector to the wiper's pulse board. After the drive home today, I decided it was time to fix it. I knew there was content out on the internet and I found this video from Road Rage Customs that basically said to replace the board. I also knew that there was a resoldering fix.
Lemme think here... drop $21 on a new board or touch it with a soldering iron?
After re-installing the board, I tested the wipers and they worked except the driver's side wiper was a little loose. I removed the cover and tightened the bolt holding the wiper arm down and tested again. Works!
I'm writing most of this as the ARRL June VHF contest is underway. With the 706 still laid up (parts did NOT come on Friday the 13th with a full moon... positive omen? No.), it's on the bench gathering a little dust.
So I noticed in QST the August 70cm contest. I have 20' (+/-) of masts, and 20 watts on 70 cm, and I can make an antenna... but I would need a good directional antenna because I have no interest in buying a 400 MHz linear amp for a contest that I may not have any contacts in.
"Good directional antenna" means a yagi or a quad. It also means it needs to be rotatable. I could just turn the entire mast, but I don't know how that will work - my poles are fiberglass, and will have to be guyed, so that may be easier said than done. I have a junk box full of stepper motors, I have some Arduinos... this could get fun. Even better, it is temporary, so I don't have to drop big bucks to do this.
So my thinking is that I want an inexpensive home-built rotator. I want the rotator to know where the antenna is pointing, and there are two components to this - a rotation sensor to tell me where the antenna is pointing and a sensor to act like a compass to tell me where north is.
All that being said, this is post 1 of 2.
For the hobbyist, there are basically four encoder options: optical, magnetic, capacitive, and mechanical. These can be incremental - where it tells you that there is change and how much the change is (or a pulse on change) or absolute (where it gives you a specific position).
Optical encoders are commonly found in printers and scanners, and the same concept was used by Ben Heckendorn on his Doggie Treat Dispenser. These have an optical sensor that looks for dark/light marks on a disk on a rotating shaft. I don't know about prices for these, since I have a few of them from a coworker's printer that stopped working.
Magnetic encoders operate by using a magnet and a hall effect sensor to sense the change in the magnetic field due to the magnet's rotation. I'm guessing (operative word!) that these are bad to use in strong magnetic fields (like near a motor, hard drive, or one of those big electromagnets used in junkyards to lift cars).
It appears the only magnetic encoders available (for hobbyists) are analog - they give a voltage output based on the rotational position. This has the benefit of being absolute or semi-absolute. Prices range from $10 to $45 from the big US suppliers. Their use with an Arduino would be similar to the use of a light sensor (although the voltage divider may be built into the sensor, so you may not need to have one separate).
Capacitive encoders work similarly to optical encoders, but instead of using a beam of light, it uses a set of disks and a capacitance sensor. Benefits (according to CUI) are that dust can mess up optical encoders and that LEDs can burn out.
Capacitive rotary encoders run around $25 and provide up to 2,048 positions of output (that's one every .18 degrees!). Looking at the linked item, it seems to be the most ready-to-use sensor, depending on the application.
Mechanical rotary encoders are common in selector switches. They have mechanical rings inside (I couldn't find a good explanation of how this works). They are inexpensive and common, but I'm not sure of their use within an antenna rotator. Truthfully, the amount of torque needed to turn a selector switch is so much that I'm not sure this is really an option.
As the only picture on this post indicates, I have a motor with a sensor. I am going to build that into some sort of rotator that can be mounted on top of a fiberglass pole that I can use to turn the antenna. I don't know if I can have it done by August, but I'm going to try... presuming I get the 706 fixed first!
I built an iGate.
I basically used the instructions from KB9MWR, although aprsx was giving me fits. I have soundmodem running on Debian (it's much easier to get it working there than Ubuntu), and the latest aprsx compiled locally.
Hopefully by the time the evening rolls around, more will fill up this map gated by me.
Note that my location on the map is near, but not at, my house (not that I'm not really hard to find, with the magic of ULS/QRZ and Google Street View).
You can see the stats on aprs.fi. At the time I'm finishing this post, I've only gated 6 stations through and they are only digipeaters and weather stations. I have seen position packets through, but I don't know if they are not being gated or if they are but APRSIS isn't sending them because they are duplicates.
Either way, coverage on SR 32 (a high traffic highway) and SR 125 (a high traffic roadway) now have some coverage, and it looks like a local nearby digi is down for now (the owner has indicated in a blog post that he's moved, so it may be back sometime).
Despite working at the food booth for the Milford Hamfest, I did get some time to get into the boneyard. I came back with a few things.
Not a bad haul.
I worked a little more on the IC-706 Friday night and located a bad ribbon cable to go along with the bad filter. I sent an email to Icom in the wee hours of Saturday morning, so I'm sure I'll hear from them on Monday (or they'll hear from me on Monday, one or the other). Since I'm waiting on parts, I moved that aside for getting into possibly building a packet station.
I started with a box I bought at a hamfest late last year. The part of the box that I saw first was a TinyTrak3 chip inside. I saw a Motorola commercial HT second.
So I got into the HT, a Motorola HT90. It had a few minor challenges, like a short when I connected power to it (which was not with the battery, of course). Once I fixed that, I installed the two crystals (which one of the prior owners dropped about $75 on in 2002!). I had to tune it to transmit right on 144.390 (see the image in the gallery with my little test adapter). Once I did all that, I plugged it into the computer and installed and configured soundmodem.
Aaaaand... nothing. In fact, looking at aprs.fi, there was nobody in the area that was traveling. I left it on to (hopefully) get a few receptions on it.
I've written before how I don't understand how I can buy a chip on a board from China for $5, or I can buy the chip alone, in quantity, for $15.
Yesterday, I ordered parts. I looked at eBay, and ordered over 7,000 parts - resistors, capacitors, LEDs, and transistors (plus two more breadboards). The purchase was less than $60 and the shipping cost for all of it - from 8 different sellers in China - was $7.59.
I balked at the idea of ordering microcontrollers and chemicals from China (thanks to reading some counterfeit chip blog posts back in 2012), so I ordered 5 PIC16s, some thermal grease, and a few other small items from Newark. $8.72 to ship these things from South Carolina.
This time, my decision to purchase a ton of SMD parts from eBay wasn't just motiviated by price. It was also motivated by the fact that out of the three major webstores I look at - Mouser, Newark, and Digi-key, only Digi-key comes close to having an assortment in the price reach of a hobbyist (they have assortments in the $9 and up range, Mouser starts over $100, and Newark starts over $200). Maybe it has something to do with Digi-key's founder - he is an amateur radio operator.
The difference is that the stuff I ordered from South Carolina, while shipped in two packages (a true WTF? moment there, as 5 chips, 9 battery holders, and a 6.5g tube of thermal grease should fit in a small box, not two) will be here two days after I order it. The stuff from China is expected to be delivered 6/19 or after, for orders placed in the late morning of 6/3.
Honestly, every month has been busy since January. I don't expect much time to work on stuff this weekend, and then two weekends will be busy with other things going on, so the timing of the deliveries from China will likely be fine.
One thing of note, I will likely be testing every. single. part. I wouldn't be doing that if I ordered from Digi-Newark-Mouser, but since the true origin of the parts that I ordered is unknown (except for the 5 PICs, thermal grease, and battery holders), it seems that I'd be better off with an ounce of prevention (of problems).
As what was on twitter last week, I took a vacation day on Friday and went up to the Hamvention. I didn't buy much, just a small kit and a rockbound 6m FM rig. The radio was $5 (it makes it feel so much better to mention the price when talking about the fact that it is rockbound).
The first thing I looked into was the 6m rig. I plugged it into the power supply and a dummy load with a watt meter and hit the TX... nothing. I even tried yelling and whistling into the microphone (which didn't - and shouldn't have - made a difference).
I took a look inside. I figure there is at least $5 worth of parts in here, so it isn't a loss. Or I could try to fix it, but I'm not sure that would be worth my time.
The better part of Hamvention was meeting several twitter friends in person and catching up with a few local (and non-local) friends that I don't see often. That definitely made it a good trip!