Welcome to the N1IR Electronics Website. Totally off the cuff, one take, unrehearsed video projects for anyone interested in amateur radio, electronic design, makers, hardware hackers and science.

Get off your duff and build something!
Training the hand and mind since 1982.

Friday, December 26, 2014

PCB from China 2

Got a new board from Dirt Cheap Dirty Boards http://dirtypcbs.com/.
here are some snap shots compared to our milled one on the T-Tech Mill

Looks great, again Dirt Cheap Dirty Boards came though with flying colours, this time I shipped DHL Hong Kong and got the boards exactly one week from the board house. Much better than my last order.

Problems to fix next time:

1. There was one via that is shorted that it's not suppose to, but not the board house fault, it is touching in my design, see below for a screen shot. easy fix with an xacto.

2. Forgot to label components on top silk screen

3. Nice thing to do is move buzzer to opposite side of arduino, using top layer. so far all my designs have been single layer.

Things Learned:

1. Board house can silk screen on both sides.

2. If the pads are touching they will follow design exact.

3. Board outline is on outside edge of midlayer, unlike the mill machine that is centred on midlayer, you can see the size difference in the above photo.

4. Board house can make any size under 100mm x 100mm my board is 71.5mm x 57mm exact to design. I though that it would have been 100x100 default.


Tuesday, December 16, 2014

Semi Automatic Paddle Practice Oscillator

This circuit is a Semi Automatic Paddle Practice Oscillator, I built to practice Morse code. It' similar to the paddle key for the ICOM IC-718. Here is the video

This is different than a standard practice straight key, like my home made paddle? 

It is Arduino compatible, I like to use a 6 pin header and a FTDI cable. It a lot easier to breadboard circuits.


PCB Board Design

Coming Soon!

Here is the Code ******************************************

int outPin = 9;
unsigned int frequency = 400;
unsigned long dotDuration = 60;
unsigned long dashDuration = dotDuration * 3;
int dotPin = 7;
int dashPin = 8;

void setup() {
pinMode(dotPin, INPUT);
pinMode(dashPin, INPUT);

void loop() {
int dotVal=HIGH;
int dashVal=HIGH;

dotVal = digitalRead(dotPin);
dashVal = digitalRead(dashPin);
if (dotVal==LOW)
tone(outPin, frequency, dotDuration);
delay (200);
if (dashVal==LOW)
tone(outPin, frequency, dashDuration);
delay (400);


Tuesday, December 9, 2014

Emptiness of a vacuum

AMPEG Valve amp I'm working on, more to come stay tuned......

Mega Hurts

This project is a 1 Hertz reference clock signal for digital and binary clocks, some of our older projects used the 60 HZ line frequency as a clock reference, the problem with this is after the power company deregulation they no longer have a tight frequency standard, the power company use to be 60 Hz (+/- 1 HZ).
Now it's all over the place, I measured at my house anywhere from 55 to 70 HZ, no wonder my old clock was gaining and losing time.

Here is the schematic


Here is the schematic of the binary clock we use

Notice that coming off the secondary of the transformer it feed into a 4040 and divides down by 60, pin4 of the 7414 is 1 Hz.

Monday, December 8, 2014

Projects on Steroids II

This project details a small & simple, but very powerful USB charger for your mp3 player, camera, cell phone, and just about any other gadget you can plug into a USB port to charge!

The USB charger that runs off 3 volt Boost regulator. this one is a twist with two "D" Cell. Does not work with Apple i"whatever", for apple you need to set 2 voltages on D+ and D- pins this will set your charge rate.

Projects on Steroids

Finnaly I can post again after finishing my last class.

Here are a couple of project I've been working on.

First is a 40 amp triac phase control for my electric water heater, this was built so I could reduce the wattage of the hot water heater, this was done so I could run the heater off my genset if we had power loss. Yes it works! and yes it takes longer to heat the water but it does not tax my genset. If I hooked it directly up to the genset it would be at it's maximum wattage rating. I have cut the power in half to around 2KW. Why not use a diode? Well that would tax one phase of the genset more than the other not a balanced load, by using the triac I can control both sides of the sinewave. Photo are below

I used the guts of a dimmer switch and swapped traics, you can still see the old one mounted next to the pot. The triac is rated for 40 amps or 9600watts, the heater has a max of 4500 watts. The heat sink is off of a solid state relay. I ran without a heat sink and the box got warm to the touch so I over killed the heat sink. Out of the box it min pot resistance I run about 2100 watts, at max 4000 watts. Used 10 AWG solid wire soldered directly to MT1 and MT2.

Thursday, October 30, 2014

Dirt Cheap Dirty Boards from China

Just got my boards back from Dirt Cheap Dirty Board, they turned out awesome. But it took exactly 30 days to get to my house from Hong Kong. I think next time I am going with the $33 DHL shipping at 3 to 9 day. Here is the board,

I went with a simple board I first milled out on our T-Tech 5000 at my shop for test. After figuring out what Gerber files I needed I sent it to Dirt Cheap Dirty Board. The holes are 50 thousandths.

Overall the board has some very, very minor cosmetic blemishes, but soldered up nicely and was well within my hole and dimension specification. The plating was very thick and the traces were a bit raised because of the plating. Perfectly fine for my work, I am definitely ordering more project PCB with this company and give our poor mill machine a rest from mass production.    

Changes: The only changes for the next board is hole size 50 thou was a bit bigger than what I needed next time I'll try 30. Very happy customer!

Saturday, September 27, 2014

Amateur radio saves lives!

I usually keep my radio on all night just in case, I have battery powered station that charges on solar so electricity is free to run it so I keep it on 24/7.

About 4:30 9/25/2014 from a dead sleep I heard a weak station call for help ” I need help......I'm at 77 Plymouth, Ave and need an ambulance” at first I though I was hearing things, but the station came on again saying “I need help I'm at 77 Plymouth, Ave” cutting in an out of the repeater. I got up and responded and found that the station calling was Mike W1MWC, I found he was diabetic and haven't had medication for three days, he also could not move from his chair. I got his full address and called 911. 911 then transfer me to Andrew at EMS. I explained to Andrew that my friend was in trouble and gave him the address and told him I was in direct radio contact with him.
Andrew also heard Mike on the radio in the background as well and assessed his situation over the radio. Mike was shaking and could not get up from his chair but he had his radio next to him a Baofeng handheld. Andrew instructed me to keep in contact with mike and tell him help was on the way. Andrew dispatched an ambulance and police to Mikes address. In a matter of a few minutes the ambulance was at his address trying to gain entry into mike home, I asked mike if there was anyone there that could let them in, he did not he was alone. The Wareham police got there a short time later and force there way into his home where they found Mike. I kept in contact with Mike until the police got into his home and stood by for any additional traffic.


Wednesday, August 20, 2014

I've got the Power!! cue music from SNAP.

Testing out a new power inverter, 2.5 KW / 5KW peak. Some notes on this set-up I used a single group 24 Marine Battery.  I got this set-up to power my furnace in-case of power outage, they are frequent in my neighbourhood (old lines) and for quiet operation a night, I have neighbours close by and didn't want to start a generator in the middle of the night, plus I have a couple of solar panels to charge the batts so a gen-set might not be needed.

Couple of things I found out:

1. Furnace draws 8 amps after startup, this pulls a whopping 90 amps at 12VDC!
2. This set-up did work but low volatge alarm goes off constantly 11VDC under load
3. 90 amp draw battery will only last about 45 min (about 3 heat cycles)
4. good enough for one night but would need 4 hours of solar to charge

What I learned
1. Scotty we, NEED MORE POWER

2. Plan on adding second group 24 Marine Battery
3. Use 0 AWG or better not four 10 AWG in parallel like in test set-up
4. More Solar!

Saturday, July 12, 2014

Great Ebay Find

Hi All,
It's been a while since I’ve done a video post. I was browsing ebay and happened across a Fluke 1910A sold locally, originally it was up for sale for $40, but I made an offer for $20 and it was accepted.

The 1910 was being sold as non-working for parts only. I figured It would match great with my Fluke 8000 DMM I picked up a month ago and fixed as well. I figured the problem might be in the power supply of a fuse, I did have concern about the inside with having a battery option, most times something this old leaks.

Shot some video below on trouble shooting it (sorry bit of a cold).




Fluke 1910A final resting spot on my bench

Wednesday, March 26, 2014

Line Following Robot, Part 2

Stay tuned as more stuff will be updated!

As promised from Part 1, http://www.n1ir.com/2014/01/been-over-month.html

Here is the tech info on the robots. So far we've produced 45 units with no problems.  All grades 9, 10, 11 and 12 assembled both boards with no issues.

Originally we thought there might have been soldering issues because traces are tight, but quickly found out if done in sections and tested one section at a time it narrowed down were shorts were.

Another helpful strategy was going over IPC soldering techniques and videos on a practice projects, we found that going over a half dozen project board that were similar in construction increased success of both robot boards.

There are also several other test jigs and programs I made that support this project that will be posted on here as well.

Here is the main board pics
All parts except H-bridge and ATMEGA328 are from donated parts. Thanks to Sager Electronics and Massa Products for there donation.
 Main Board Traces

Partial assembled Opto Board Version 666 Really Version 6 but hit the key to many times hi, hi

 Main board / Optoboard schematics Version 5

This is version 5, I still have to put in values for components. Sorry this was drawn on the fly as corrections were made hours before post production. Version 6 coming soon!

Noticed we dumped the Mega16U2 USB bridge chip that is on the UNO and swapped it for the FTDI cable for simplicity.

Robot with older Optoboard

This is the preproduction version, as of this writing the post production are being assembled next week, more pics coming soon. If you notice on new optoboard the spacing between the QRD1114 is smaller and there are an addition of two LED side markers. We also swapped batteries instead of 3 AA Alkaline, in post production we are using 4 AA NIMH.

Chassis Mech Drawings

Board Mech Drawings



We are running the ATMEGA 328 with the Arduino UNO boot-loader, all programming can be accomplished by using Arduino IDE under "Arduino UNO Board" originally we were going to use the internal oscillator to reduce cost, but ruled this out for internal timing issues, we wanted a simple platform for a student to use without modifying the Arduino IDE environment.
Here is the main program with comments, the first part is the tone library since none of the students laptops have it preloaded in the arduino software set. The program plays a melody then follows a black line, two led on the sensor board indicate direction of turn.

So far we are only using 3 out of 5 optical sensors, the outermost ones will control the response time to center line, ie outer will return to center faster than inner. We are also looking into using the PID control library, but for now it's a simple proportional on/off control loop.

// All lines below define the frequesncy of each tone
// Do not change any of those lines in this section
  #define NOTE_REST 0
  #define NOTE_B0  31
  #define NOTE_C1  33
  #define NOTE_CS1 35
  #define NOTE_D1  37
  #define NOTE_DS1 39
  #define NOTE_E1  41
  #define NOTE_F1  44
  #define NOTE_FS1 46
  #define NOTE_G1  49
  #define NOTE_GS1 52
  #define NOTE_A1  55
  #define NOTE_AS1 58
  #define NOTE_B1  62
  #define NOTE_C2  65
  #define NOTE_CS2 69
  #define NOTE_D2  73
  #define NOTE_DS2 78
  #define NOTE_E2  82
  #define NOTE_F2  87
  #define NOTE_FS2 93
  #define NOTE_G2  98
  #define NOTE_GS2 104
  #define NOTE_A2  110
  #define NOTE_AS2 117
  #define NOTE_B2  123
  #define NOTE_C3  131
  #define NOTE_CS3 139
  #define NOTE_D3  147
  #define NOTE_DS3 156
  #define NOTE_E3  165
  #define NOTE_F3  175
  #define NOTE_FS3 185
  #define NOTE_G3  196
  #define NOTE_GS3 208
  #define NOTE_A3  220
  #define NOTE_AS3 233
  #define NOTE_B3  247
  #define NOTE_C4  262
  #define NOTE_CS4 277
  #define NOTE_D4  294
  #define NOTE_DS4 311
  #define NOTE_E4  330
  #define NOTE_F4  349
  #define NOTE_FS4 370
  #define NOTE_G4  392
  #define NOTE_GS4 415
  #define NOTE_A4  440
  #define NOTE_AS4 466
  #define NOTE_B4  494
  #define NOTE_C5  523
  #define NOTE_CS5 554
  #define NOTE_D5  587
  #define NOTE_DS5 622
  #define NOTE_E5  659
  #define NOTE_F5  698
  #define NOTE_FS5 740
  #define NOTE_G5  784
  #define NOTE_GS5 831
  #define NOTE_A5  880
  #define NOTE_AS5 932
  #define NOTE_B5  988
  #define NOTE_C6  1047
  #define NOTE_CS6 1109
  #define NOTE_D6  1175
  #define NOTE_DS6 1245
  #define NOTE_E6  1319
  #define NOTE_F6  1397
  #define NOTE_FS6 1480
  #define NOTE_G6  1568
  #define NOTE_GS6 1661
  #define NOTE_A6  1760
  #define NOTE_AS6 1865
  #define NOTE_B6  1976
  #define NOTE_C7  2093
  #define NOTE_CS7 2217
  #define NOTE_D7  2349
  #define NOTE_DS7 2489
  #define NOTE_E7  2637
  #define NOTE_F7  2794
  #define NOTE_FS7 2960
  #define NOTE_G7  3136
  #define NOTE_GS7 3322
  #define NOTE_A7  3520
  #define NOTE_AS7 3729
  #define NOTE_B7  3951
  #define NOTE_C8  4186
  #define NOTE_CS8 4435
  #define NOTE_D8  4699
  #define NOTE_DS8 4978
// This is the end of the tone definitions section

// This part of the file defines the notes of the start song
// and the duration of each note
// You need to insure that the # of notes on melody line
// must equal the # of note durations listed
// Initially there are 8 notes, including a rest, and 8 note
// durations. Program fails if the above condition is not met
    int melody[] = {NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, NOTE_REST, NOTE_B3, NOTE_C4};
    int noteDurations[] = {4,8,8,4,4,4,4,4};
// This is the end of the section that plays the start song

// This is the section that defines integer variables and assigns
// pin numbers or sets initial values of those variable
    int CenterIR = A3;
    int DriverIR = A4;
    int PassengerIR = A2;
    int EXDriverIR = A5;
    int EXPassengerIR = A1;
    int DriverPWM = 3;
    int DriverD = 9;
    int DriverC = 10;
    int PassengerPWM = 6;
    int PassengerD = 5;
    int PassengerC = 2;
    int CenterIRValue = 0;
    int DriverIRValue = 0;
    int PassengerIRValue = 0;
    int EXDriverIRValue = 0;
    int EXPassengerIRValue = 0;
// This is the end of the section that defines integer variables
// This is the section called void setup that executes only once
  void setup()
    pinMode (12, OUTPUT);
    pinMode (13, OUTPUT);
    pinMode (DriverPWM, OUTPUT);
    pinMode (DriverD, OUTPUT);
    pinMode (DriverC, OUTPUT);
    pinMode (PassengerPWM, OUTPUT);
    pinMode (PassengerD, OUTPUT);
    pinMode (PassengerC,OUTPUT);
    digitalWrite(DriverD, LOW);  //Direction of Motor LOW is FORWARD ALWAYS
    digitalWrite(DriverC, HIGH); // Brake set to OFF ALWAYS
    digitalWrite(PassengerD, LOW);  //Direction of Motor LOW is FORWARD ALWAYS
    digitalWrite(PassengerC, HIGH); // Brake set to OFF ALWAYS

// this is the loop that plays the notes, again you need to
// have the correct number of notes listed. Initially 8.
      for (int thisNote = 0; thisNote < 8; thisNote++)
        int noteDuration = 1000/noteDurations[thisNote];
        tone(11, melody[thisNote],noteDuration);
        int pauseBetweenNotes = noteDuration * 1.30;
// this is the end of the loop that plays the the tones, initially 8.    
// This is the end of the loop section called void setup that executes only once
//This the start of the loop section called void loops that loops until reset switch pushed
  void loop()
    CenterIRValue = analogRead(CenterIR);
    DriverIRValue = analogRead(DriverIR);
    PassengerIRValue = analogRead(PassengerIR);  
    EXDriverIRValue = analogRead(EXDriverIR); //*****NOT WIRED YET*******
    EXPassengerIRValue = analogRead(EXPassengerIR);  //*****NOT WIRED YET*******
  if (CenterIRValue >= 600)
      analogWrite(DriverPWM, 175); //255 = Full Speed
      analogWrite(PassengerPWM, 200); //255 = Full Speed
      digitalWrite(12, LOW);
      digitalWrite(13, LOW);
  if (DriverIRValue >= 600)
      analogWrite(DriverPWM, 50); //175 = Medium Speed
      analogWrite(PassengerPWM, 175); //255 = Full Speed
      digitalWrite(12, HIGH);

  if (PassengerIRValue >= 600)
      analogWrite(DriverPWM, 150); //255 = Full Speed
      analogWrite(PassengerPWM, 50); //175 = Medium Speed
      digitalWrite(13, HIGH);
// This section is not initially used but allows you to do something
// when the outermost sensors encouter the line, maybe turn faster?

 if (EXDriverIRValue >= 45)
     analogWrite(DriverPWM, 50); //50 = Slow Speed
     analogWrite(PassengerPWM, 225); //255 = Full Speed
     digitalWrite(12, HIGH);

 if (EXPassengerIRValue >= 40)
     analogWrite(DriverPWM, 225); //255 = Full Speed
     analogWrite(PassengerPWM, 50); //50 = Slow Speed
     digitalWrite(13, HIGH);
      delay(5); // Reaction Time before you check status of sensors and next loop starts
       // PS: You are in an infinite loop until you reset arduino board
       // code flow returns to the start of "void loop()" first bracket {
// This is the end of the void loop and the program never gets to this point given infinite loop.

Friday, March 21, 2014

Ham Radio Tech course for May 10 and 17

Hi All,
The Tech course for May 10 and 17 is a go! We are located at the Middleboro Library, we have 3 students so far and the list is growing, again of you know anyone who is interested in taking the tech course please pass this on. Thanks to all that volunteer without your effort the hobby and this class would not be a success.

Call out to volunteer instructors, anyone wish to teach a section please email me.

Saturday May 10, 2014
09:00 – 9:15 Setup, Introduction, Books Materials
09:15 – 10:00 T1 (FCC Rules Part A)
10:00 – 10:15 Break / Q+A
10:15 – 11:00 T1(FCC Rules Part B)
11:00 – 11:45 T2 (Operating Procedures)
11:45 – 12:30 Lunch
12:30 – 1:15 T3 (Radio Waves and Propagation)
1:15 - 2:00 T4 (Station Setup and Operation)
2:00 – 2:45 T5 (Electrical and Electronic Principal)
2:45 – 3:00 Breakdown

Saturday May 17, 2014
09:00 – 9:15 Setup
09:15 – 10:00 T6 (Electrical Components and Functions)
10:00 – 10:15 Break / Q+A
10:15 – 11:00 T7 (Operating Procedures)
11:00 – 11:45 T8 (Operating Modes and Special Operation)
11:45 – 12:30 Lunch
12:30 – 1:15 T9 (Antenna and Feed Lines)
1:15 – 1:45 T10 (Electrical and RF Safety)
1:45 – 2:45 VE TESTING
2:45 – 3:00 Breakdown

Thank for you support

Saturday, March 15, 2014

Motorola GTX 900 Accessory Connector

Greeting all here is a write up on the Motorola GTX 900 Accessory Connector

The connector you can buy from Digi-Key

      Digi-Key Part Number 104422-1-ND, 
      Manufacturer: TE Connectivity 104422-1

The pins for the connector

     Digi-Key Part Number A3007-ND
     Manufacturer: TE Connectivity 1-87309-3

Back End View of Connector

← Latch
15 13 11 9 7 5 3 1
16 14 12 10 8 6 4 2

GTX Mobile Accessory Jack Pins and Signals
Pin # Signal Name Description and Usage
1 EXT SPKR - Connect to an external speaker with pin 16
2 EXT MIC AUDIO Microphone-level audio input
3 EXT PTT Push-to-talk input
4 EXT ALARM Active low output to drive a relay
5 FLAT TX AUDIO Line-level audio input
6 SCI DATA IN Not used
7 GROUND Ground for PTT and audio - NOT FOR SPEAKER
8 SCI DATA OUT Not used
9 EMG SWITCH Low input activates alarm functions in radio
10 IGNITION CTRL Must be pulled high to let radio turn on
11 FLAT RX AUDIO Flat receive audio output
12 GP I/O Not used
13 INT SPKR Connect to pin 16 to activate internal speaker
14 HOOK Low input to activate RX PL/DPL
15 RSSI BUF Analog output of rcvd signal strength: 1.5 - 4.5 VDC
16 EXT SPKR + Connect to an external speaker or pin 13

 GTX1 works with early model GTX

GTX2 works with late model and LCS2000

Example late model with ext speaker

Thursday, February 20, 2014

Two projects one pic


Here is my last project, I just redid the whole floor in the lab (got to clean up the glue) and my upcoming project CX-333 with LMR-400UF cable.

Automatic Battery Voltage Entry in Excel

Hi all,
Sorry it been a while since the last post, I’ve been working on some bitcoin mining with a laptop on solar power! So far made $5 a month with just spare parts laying around and on my network dead time.

Anyway here is a new project I was just working on, I wanted a way to plot the capacity on my larger 80 Ah Lead acid batteries. In years past I would hook up a load and a voltmeter and read every 10 minutes and enter in the voltage by hand in excel. This is okay  but I wanted a better autonomous way to enter in the voltages. I looked into commercial meters and other stuff, way to expensive.

Then I cam across the Arduino Micro at my local radio shack, I was floored RS had arduino stuff. Well anyway the micro has a USB keyboard and mouse library.

So with a very simple program I was able to read A0 and print it out via USB keyboard to excel, here is the program.

const int analogInPin = A0;
int sensorValue = 0;

void setup() {
void loop() {
delay (5000);
sensorValue = analogRead(analogInPin);
delay (100);
delay (100);
delay (100);
delay (100);
delay (100);

delay (5000);

A bit about the program I used LibreOffice so the =NOW() is a time stamp function, also as soon as you plug in the USB it will start entering data make sure your on A1 block in excel when starting

Be careful with the delay, if the delay is too small it will be difficult to program, hit the reset button while programming to "break" in.

You can see it in the video below:

Here is the circuit, I used (3) 100K precision resistor .1% this is to eliminate the need to calibrate, should be close enough. I am monitoring a 9 Volt battery for test with no load. 

The Math okay the A to D has 1024 steps from 0 to 5 Volts so take 5/1024 = about 4.88 mV/Step.

So VIN = ((A2DValue*.00488)*3) for this circuit.

Overall I was impressed by the Mico, other projects I have in mind with the micro:

Password keeper (press a button and output a large password)
Automatic data entry in web apps (end boring same data entry)

Sunday, February 9, 2014

Saturday, February 1, 2014

Logic Demo Board

I've been teaching both the technician and general licence class for amateur radio for a while and have always run into the problem of describing digital logic gate. So I decided to make a very simple demonstration board with various glue logic, AND, NOR, Etc.

Thanks to my student Kim for milling and assembly.

Top Side

The top switch is power, the bottom two switches are inputs to the gate with LED to indicate the state, the LED top of the IC is the output.

This lay is not traditional, we used thru hole components in a surface mount configuration, I did this so the student can see the connections and trace out the circuit. The switches we used were a donated parts from MASSA Products, LEDS and battery holder were donated from Sager Electronics.

Thursday, January 30, 2014

Been over a month

Sorry been over a month since my last post, it will be worth it. Im working on a hush, hush project. It is still in the prototype stage but been working hard and in collaboration with our Drafting Department and Precision Metal Technology, with the all important 3-D printer.

Hint: it's striped Arduino with an L298 H Bridge and QRD1114


The first 5, various stages of the build for the five prototypes, preproduction run.

Very excited about this project, it been too long sine I've done a collaboration with others. Software is almost done thanks to Vin. Will post formally once all bugs are out and in the final revision (so far we are on version 5 with three variations).