Tuesday, March 7, 2017

Old vcr ir sensor.


An old fashion vcr can be a treasure trove of re-usable spare parts for electronic and robotics. Although they are quickly disappearing, you can still find them in a few thrift stores.



In this case I rescued the vcr channel ir sensor. Also added extension wires  for use with a breadboard. There is a ton of code out there, but the connections setup is the most vital. There are three basic connection data, plus, and minus, YOu will probably have to do a web lookup to get the pinout of the ir sensor.

Then look for the circuit that applies.


http://playground.arduino.cc/Main/PanasonicIrSensor

Lcd pixel fix.


Fixing a bad pixel on some lcd monitors is as easy as using a ball point pen. Be gentile and do not puncture the screen. Then rub the screen with a cloth to restore the screen.







Raspberry pi zero.

Instead of getting the rpi zero w, I will just add a usb female to my existing pi for the time being.Have lots of leftover cables for the cause.. Can always plug in a wifi or bluetooth module.


Various notes:

Simplest configuration to connect to an unsecured wireless router knowing it;s essid: #linux

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wireless-essid router-essid

 Improvisational solder less header pin for the rpi zeroPhoto

Saturday, March 4, 2017

Another way to use audacity.

Just an idea or two, My brother is an awesome guitar player and he said I could download the audio of him playing.


Export files as .mp3 and then move them to the server.


Saturday, February 11, 2017

Stepper motor and the parallel port.


Various stepper motors, They are great for robots and other automation projects.  The same ideas can be used with micro-controllers.Here are just a few notes. Testing stepper motor wiring: http://www.piclist.com/techref/io/stepper/wiresmeterbattery.htm


The bipolar motor (4 wire):



From an old Seagate hard drive.









Unipolar motor.







CLS
VarMode = 0
VarRot = 0
VarRev = 0
VarDelay = 0
int1 = 0


Main:
CLS
OUT 888, 0
DO UNTIL INKEY$ <> ""
PRINT "Enter the number of revolutions"
INPUT VarRev
VarRev = VarRev * 50
PRINT "Enter the Mode of operation"
PRINT " 1 for single coil excitation"
PRINT " 2 for double coil excitation"
INPUT VarMode
PRINT "Enter the number of delay cycles"
INPUT VarDelay
PRINT "Enter the direction of rotation"
PRINT "5 for CW 7 for CCW"
INPUT VarRot
VarMode = VarRot + VarMode
IF VarMode = 6 THEN GOTO ScCW:
IF VarMode = 7 THEN GOTO DcCw:
IF VarMode = 8 THEN GOTO ScCcw:
IF VarMode = 9 THEN GOTO DcCcw: ELSE GOTO nd:

LOOP

ScCW:
DO
GOSUB Step1:
GOSUB Step2:
GOSUB Step3:
GOSUB Step4:
VarRev = VarRev - 1
IF VarRev = 0 THEN GOTO Main:
LOOP

ScCcw:
DO
GOSUB Step4:
GOSUB Step3:
GOSUB Step2:
GOSUB Step1:
VarRev = VarRev - 1
IF VarRev = 0 THEN GOTO Main:
LOOP

DcCw:
DO
GOSUB Step5:
GOSUB Step6:
GOSUB Step7:
GOSUB Step8:
VarRev = VarRev - 1
IF VarRev = 0 THEN GOTO Main:
LOOP

DcCcw:
DO
GOSUB Step8:
GOSUB Step7:
GOSUB Step6:
GOSUB Step5:
VarRev = VarRev - 1
IF VarRev = 0 THEN GOTO Main:
LOOP

Step1:
OUT 888, 0
DO
OUT 888, 1
IF int1 = VarDelay THEN RETURN
int1 = int1 + 1
LOOP


Step2:
OUT 888, 0
DO
OUT 888, 2
IF int1 = 0 THEN RETURN
int1 = int1 - 1
LOOP

Step3:
OUT 888, 0
DO
OUT 888, 4
IF int1 = VarDelay THEN RETURN
int1 = int1 + 1
LOOP

Step4:
OUT 888, 0
DO
OUT 888, 8
IF int1 = 0 THEN RETURN
int1 = int1 - 1
LOOP

Step5:
OUT 888, 0
DO
OUT 888, 3
IF int2 = VarDelay THEN RETURN
int2 = int2 + 1
LOOP

Step6:
OUT 888, 0
DO
OUT 888, 6
IF int2 = 0 THEN RETURN
int2 = int2 - 1
LOOP

Step7:
OUT 888, 0
DO
OUT 888, 12
IF int2 = VarRev THEN RETURN
int2 = int2 + 1
LOOP

Step8:
OUT 888, 0
DO
OUT 888, 9
IF int2 = 0 THEN RETURN
int2 = int2 - 1
LOOP



nd:
OUT 888, 0

Other motors:



Saturday, February 4, 2017

Just a quick tip or two with Kodi.

One of the interesting features in Kodi is setting the country and time zone: Here is a picture tour of where to go.








The other quick hint is that having a remote control might be an issue.    To set a web interface add-on as the default web UI, go to System -> Services -> Webserver and select that add-on for the Default value. Then go to the hostname (or IP address) of that HTPC+Port number. Note: Some platforms use port 80, which is the assumed port if no port is given in the address. Now you can use a touchpad with a browser or a laptop.  Setting up am entry in the local dns will make things easier. I like the fact that the cursor keys work great with the system. Personally I just use an old 600 mhz laptop to be the remote control. Allows you to use the internet if you need to or even just use an editor to take notes.


That's it for now.

Friday, December 30, 2016

Legacy computer home automation server


Using legacy systems to do home automation when an Arduino or Raspberry Pi may not be available. They can work just as well. 


Server is a Pentium III with Ubuntu and Apache2. Enabled CGI (common gateway interface). Wrote all my own scripts using html, bash, and compiled freebasic (controls the leds).    Leds are connected to the parallel port via a home made adapter cable. Most of the code and interfaces are described in previous articles.  Added the video to the home web page:


Time to control real world object such as a coffeemaker.


For more information: http://www.tldp.org/HOWTO/text/Coffee