Browse Month

June 2017

Linksprite DIY CNC info/stats/mods

Just to keep track of what I’ve done, current settings, mods, and measurements.

Controller: (CNCjs)

Chuck upgrade:

Limit switches:
it appears that bolting the limit switches directly onto the z carriage is causing them to trigger due to vibration.. need to figure out a dampening option, or make grbl ignore the jitters somehow. For now, I am unplugging them after homing.

Upgrade to grbl 1.1 steps:

following the steps outlined here…/Compiling-Grbl

ArduinoIDE settings were as follows:
board: Arduino duemilanove or diecimilia
Processor: ATmega328
port: /dev/cu.wchusbserial1410

Tslot stats:

After installing the upgraded chuck I found myself limited to 26mm of z axis, so I replaced the vertical posts with taller ones getting me closer to 40mm of z
6mm depth
6.1mm or .2 opening IW
11mm inner race
2.5ish mm race width

result of $$ post upgrades:

RESP: $0=10
RESP: $1=25
RESP: $2=0
RESP: $3=4
RESP: $4=0
RESP: $5=0
RESP: $6=0
RESP: $10=0
RESP: $11=0.010
RESP: $12=0.002
RESP: $13=0
RESP: $20=1
RESP: $21=1
RESP: $22=1
RESP: $23=0
RESP: $24=25.000
RESP: $25=500.000
RESP: $26=250
RESP: $27=1.000
RESP: $30=3500
RESP: $31=70
RESP: $32=0
RESP: $100=800.000
RESP: $101=800.000
RESP: $102=800.000
RESP: $110=1200.000
RESP: $111=1200.000
RESP: $112=500.000
RESP: $120=10.000
RESP: $121=10.000
RESP: $122=10.000
RESP: $130=130.000
RESP: $131=80.000
RESP: $132=38.494

LINKS: – Linksprite CNC forum


Ring flood light cam to dumb motion sensor

The worst ideas come to us when drinking too much, and having access to purchasing power when drinking is probably never a great idea.. but alas, here I am.

Links, always forget the links. Link to camera

Apparently drunk me decided that I wanted to follow through on a project that I was thinking about doing for some time. Originally utilizing the ring doorbell, but then once the flood light camera came out switching gears. The plan was to use the ring sensor to trip regular lights in the same way as an infrared motion sensor does. that way I get to keep the lights I have on my garage, and still monitor the driveway for the random cat or raccoon.. er robber attempting to assault my kingdom!

How hard could it be, drunk me seemed to say as i looked at the unopened box on my dining room table. So i decided to dive in.

First up, the disassembly. Sober me, thinking sure, I can take a crack at this, popped open the box, and promptly started tearing the thing down.

The LED lamp arms came off easily enough








Then I started poking around inside. and trouble began.

My first thought.. nay, hope was that the white box there was a big beefy relay.. no, that was not to be the case. that there is the LED driver for the lamps. which means that it’s kicking a large voltage off to the arms, it also means a regular LED light bulb, which also has an LED controller isn’t going to work. so, back to the drawing board.. sort of. I’m also thinking maybe I just go full on “there i fixed it” by tieing off the LED driver wires, and sharing power across the existing motion sensor and the camera.

Will update as I dig deeper.

update: the “there i fixed it” method worked, in an unexpected way. You see, the LED driver takes standard mains voltage. So i says to myself, there has to be a way to trigger this thing that I am missing. Turns out I was right. The camera was set to close the circuit when the lights were requested to be on.. So i removed the driver and wired internally

red – light fixture black
white – all whites bundled
black – line

Suddenly, everything was working.. and I only once climbed up the ladder without double checking the breaker(realized before touching anything thankfully)! I’d call that a win.

intel euclid – secure that bugger

This thing is a cool little computer, but it IS a computer, and we don’t want the possibilities of a zombie on our network, OR especially in our robot now do we? Link to wtf I’m talking about here.

Sadly I don’t see any way YET to lock down the default development web page, but will probably stumble my way into something and post on that. The web server appears to be a series of python scripts, so if I can find the config, change ports, and hide it behind a login screen on lighttpd or something I’ll document that out as well.

Step 1, initial setup
first things first, follow the instructions for the basic setup. as of 06/09/2017 running the ubuntu software updater does not appear to break anything (that i’ve seen so far)

step 2, change your passwords.
login via VNC with the default password (euclid) and change the default user’s password via the settings panel
then open a terminal and type the following to change the default VNC password

sudo x11vnc -storepasswd /etc/x11vnc.pass
you will be prompted as below
Enter VNC passwd: [enter new password]
Verify password: [enter the new password again]
Write password to /home/ubuntu/.vnc/passwd? [y]/n y
Password written to : /home/ubuntu/.vnc/passwd

step 3, setup ssh

sudo apt install openssh-server -y

at this point the ssh server should be running and you should be able to login with the euclid user and password

step 4, configure ssh to use public key encryption (semi optional)
I recommend using public key encryption to make the connections, and from the host machine executing the following command will copy your private key over. it MAY complain about the file not existing, and if that happens, just create a blank one at ~/.ssh/ (you may need to create the directory as well)

cat ~/.ssh/ | ssh user@hostname ‘cat >> .ssh/authorized_keys’

after that, make sure to turn off interactive login by adding/changing the following in the /etc/ssh/sshd_config file

# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
PasswordAuthentication no
ChallengeResponseAuthentication no

Step 5, restart everything
Either reboot the whole thing, or sudo service <ssh and x11vnc> restart

there ya are, it’s not perfect, but at least it’s not default!