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 you duff and build something!
Training the hand and mind since 1982.

Tuesday, June 25, 2013

YALSFT (Yet Another Laptop Saved From Trash)

Got this one working again, saved it from trash bin. Plastic around the DC jack snapped, it pushed the jack inside so it could not be plugged for a charge. Simple fix with some epoxy.





Simple DIce Project


Here is a very easy electronic dice project, we have done this before with discreet 74xx logic with a LM555, counter, adder and BCD to seven segment decoder, but this is far easier using the venerable ATTINY85V.

I programmed the ATTINY85V unconventionally using the Arduino 1.0 software, you can find instructions on how to do this at High-Low Tech Site. I did run into problems using the Arduino Uno as the programmer so I used my USBtinyISP from adafruit, I also made a zif adaptor socket some time ago (not pictured) to work with the USBtinyISP.

531946274_dcd8763cda_o.jpg

Sorry for the labelling of the schematic and PCB I only had an hour to design, test and build it on the breadboard and mill the PCB, so I did this one very hastily, next version should be cleaner. But that is pretty amazing from nothing to working prototype on a PCB and breadboard in under an hour, 10 years ago using standard etching I would've taken 4 to 6 hours to do the same.




 


here is the code
***********************************************************************************
int pinLeds1 = 3;
int pinLeds2 = 2;
int pinLeds3 = 1;
int pinLed4 = 0;
int buttonPin = 4;
int buttonState;
long ran;
int time = 2000;

void setup ()
{
  randomSeed(analogRead(0));
  pinMode (pinLeds1, OUTPUT);
  pinMode (pinLeds2, OUTPUT);
  pinMode (pinLeds3, OUTPUT);
  pinMode (pinLed4, OUTPUT);
  pinMode (buttonPin, INPUT);
  }

void loop()
{
  buttonState = digitalRead(buttonPin);
  if (buttonState == HIGH){
    ran = random(1, 7);
    if (ran == 1){
      digitalWrite (pinLed4, HIGH);
      delay (time);
    }
    if (ran == 2){
      digitalWrite (pinLeds1, HIGH);
      delay (time);
    }
    if (ran == 3){
      digitalWrite (pinLeds3, HIGH);
      digitalWrite (pinLed4, HIGH);
      delay (time);
    }
    if (ran == 4){
      digitalWrite (pinLeds1, HIGH);
      digitalWrite (pinLeds3, HIGH);
      delay (time);
    }
    if (ran == 5){
      digitalWrite (pinLeds1, HIGH);
      digitalWrite (pinLeds3, HIGH);
      digitalWrite (pinLed4, HIGH);
      delay (time);
   }
   if (ran == 6){
      digitalWrite (pinLeds1, HIGH);
      digitalWrite (pinLeds2, HIGH);
      digitalWrite (pinLeds3, HIGH);
      delay (time);
   }
  }
  digitalWrite (pinLeds1, LOW);
  digitalWrite (pinLeds2, LOW);
  digitalWrite (pinLeds3, LOW);
  digitalWrite (pinLed4, LOW);
}
***********************************************************************************

Friday, June 7, 2013

Prototype line following robot

Here is a prototype line following robot we are working on for our new engineering curriculum. It uses an arduino but the final production will be a straight AtMEGA328 on a custom board to keep cost down, programming done via SPI. Just a xtal couple of caps and a v-reg a stripped version of the arduino. I am using the QRD1114 Reflective Object Sensor, initial test indicated work best about .05" above floor sensing electrical tape against a white background, speed is about 10 feet in 3.2 seconds at 9 volts. Got one channel and one PWM working to test viability, works great got it running full steam when over a black surface and stopping when hitting a white surface. Next step I will get three channels working with two PWM to steer.



Problems ran into so far:
Used wrong FETs to drive motor, was using N-CH should have been P-CH DOE! Changed wiring to break ground instead of plus rail, used IRFZ44. stupid oversight should have caught that.








New 20x4 LCD

Just got in some new 20x4 LCD's. Nope these are not direct from china, unfortunately I can't find any good deals unless they are 16x2....very strange they use the same driver IC's I would think you could get the 20x4 about the same price maybe a couple of buck more. They are NHD-0420H1Z-FL-GBW-33V3 street price $15.50, about 10 bucks too much if you ask me.



Wednesday, June 5, 2013

New Toy LPKF S63


Awesome new piece of capitol equipment, so much better than the T-Tech 5000 we have. Not the the T-Tech is a bad machine (I still love the T-Tech too) it just all manual set-ups, the LPKF is totally automatic just  hit mill and it changes all bit and depth automatically. Plus the S63 has a camera on-board for inspection and feedback loop that will track fiducial, so easy multilayer boards. Also this has the dispenser unit that can apply solder paste. Total control over the Z axis we can even mill 3D objects in aluminium.

Pretty intuitive got my first board done in about 1 hour (8 min to mill board) Once I figured out the software it's pretty easy. So far I've only done single sided board but soon to have two sided done next week. I did have a problem with the camera but a upgrade on software fixed it.

The all-rounder in the LPKF ProtoMat S series is great for virtually any job in in-house prototyping. The ProtoMat S63 masters 2.5-dimensional mS63 Setupaterial machining and features a faster spindle speed of 60.000 rpm



PCB with rubout

S63 Setup
 
 Our S63

 I5 Lenovo running Win 8

 First Board

First Board