Lasercut light bulb (iteration 2)

Started to work on my bulb again,
One big change i can now change the light wow inovation at its best πŸ˜‰
Also using a bit thinner multiplex 3.8 mm (cuts easy)
Other changes:
– light is set a bit higher
– Made some holes in the blub mount disk, so the light canΒ dissipate to the lower parts
– Used a ikea base lamp to mount it on

Setting up Raspberry PI wlan

Setting up raspberry pi from the command line

Open a terminal on the pi or use ssh to connect to your pi (showing ssh here use hour own pi ip and de default user pi)

$ ssh 192.168.1.19 -l pi

and your password (default one is ‘raspberry’) and your good to go

/etc/network/interfaces looks just like this (open with the nano editor):
sudo nano /etc/network/interfaces


auto wlan0
iface wlan0 inet dhcp
wpa-ssid “???TPLINK!!!”
wpa-psk “verysecret-wpa-psk”


and that worked (there are more entries in this file just add these below)

The Wifi dongle I got from thepihut

Original source post can be founf here

Subnote (if using sitecom CN-061 USB Hub):


Sitecom USB Hub CN-061 7 Port USB 2.0 Hub powered with AC Adapter. There is a voltage problem on the left half of the hub (4 ports) that do not deliver enough current to feed a wifi dongle (tested with an RTL8191S); you should not use these ports for anything important (keyboard keys will stick, self-powered USB hard disk will reset continuously). The remaining 3 ports on the right half are instead working as expected.


Source here
But the 3 ports that should work did not work with this wifi dongle so i ended up connecting it directly to the pi

Lasercut light bulb

Working a laser cut light bulb Using Openscad / QCAD it wil be posible to change parameters for different sizes and material thickness. The version I have now is 30 cm tall but hass a small “design” problem. Unable to change out the bulb πŸ˜‰

AngularJS fadeit directive with a bit of jQuery

This is a simple directive for angularjs. It fade in and out any element that has the attribute fadeit in it.
Extra attributes can be used to control the directive. Of course this could be done with jQuery alone but this a just a reference for my personal use.

app.directive("fadeit", function () {
	return {
		restrict:"A",
		link:function (scope, iElement, iAttrs, controller) {
			var opacityEnter = iAttrs.opacityEnter ? Number(iAttrs.opacityEnter) : 1;
			var opacityLeave = iAttrs.opacityLeave ? Number(iAttrs.opacityLeave) : 0.8;
			var duration = iAttrs.duration ? Number(iAttrs.duration) : 250;
			$(iElement).fadeTo(0, opacityLeave);
			iElement.bind("mouseenter", function () {
				console.log('mouseenter');
				$(iElement).fadeTo(duration, opacityEnter);
			});
			iElement.bind("mouseleave", function () {
				console.log('mouseleave');
				$(iElement).fadeTo(duration, opacityLeave);
			});

		}
	};
});

3-axis-accelerometer DMARD03

Well i sometime buy stuff from dealextreme (mostly adruino stuff) but there is an problem. I mean it does get schipped to the Netherlands no problems with that, but there no manuals attached ;-).

In this case its a 3 axis accelerometer:
http://dx.com/p/3-axis-accelerometer-sensor-module-for-arduino-red-147319

On the chip is says:
DMT
ARD03A
114306

But its name is:
DMARD03

Its only 7 dollars so a bought it πŸ™‚ but how to hook it up to an arduino ? i had now idea after some googleing (is that a word) i found a blog (in chinese) from Cooper Maa that uses the same chip that was on my board and even better had a nice little library (thanks) and diagram. It was not Arduino 1.0 ready but that was a easy fix. With help from the data sheet i could make it work on my board.

Diagram below (not sure about the 3V3 voltage hookup i think it needs a level shifter like a 74 HC 4050 , but it seems to work, again not invented here πŸ˜‰):

Program (also included in de lib) (again not my work but from Cooper Maa):

/*
 * DMT_G_Sensor.pde:  DMARD03 
 */

#include                 //  DMARD03 

                                    // DMARD03  gSensor 
DMARD03 gSensor(2, 3);            // dataPin = 2, clockPin = 3

void setup()
{  
  Serial.begin(9600);                //  Serial port,  9600 bps
}

void loop()
{
  DMARD03_results results;          //  DMARD03_results  result 
  
  gSensor.readXYZ(results);         // (Accerleration) 
  
  // X, Y,Z  (Accerleration)  Serial Port
  Serial.print("X = "); Serial.print(results.X); Serial.print(", ");
  Serial.print("Y = "); Serial.print(results.Y); Serial.print(", ");
  Serial.print("Z = "); Serial.println(results.Z);  

  delay(200);  
}

Sources for the Arduino lib:
DMARD03 Lib
Datasheet:
DMARD03 Datasheet V2.3
Original blog post that helpt me a lot:
http://coopermaa2nd.blogspot.nl/2011/04/dmard03-accelerometer.html

(laoslaser part 3) Connecting the to laos board LS3020

Stuff i did so far on my LS3020 to LaosLaser build

– moved the yellow and green wires so that yellow is on “Laser ON E” and green is on “Laser ON C”

– replaced stepperstick with pololu’s (others had problems)
– tried to connect both mainboard MBED en LCD to usb de MBED responded normally but the LCD did not (so both 5V and 24V are needed)
– wanted to check the serial info again but had some troubels using “screen” command on my mac (yes i am a terminal noob)
– now i am using coolterm
– and that works fine and has a UI πŸ˜‰
– almost al test work but the steppers do not seem to work in a normal way maybe they are not getting enough current
– sdcard some times works and sometimes it does not weird
– tried to brun a hole but that was only posible with the potentiometer (that regulates the current) also weird

O well maybe this weekend more fun

(laoslaser part 2) HPC LS3020

Sooo we got thogeter with a bunch of people at the JeeLabs HQ to solder our laos board (thnx Jean-Claude) and made great progress. Al of us finessed and tested the board (also hooked it up to the LS3020 to test the steppers).

Here are some pictures of the result:
– LCD Screen with Joystick (the joystick is soldered faulty i will have to turn is 180 deg)

– The main laos board (missing the power connector)

(laoslaser part 1) HPC LS 3020 Lasercutter needs a new brain

Well it had no brain to speak of πŸ˜‰
The new brain i got from:
http://wiki.laoslaser.org/index.php/WebShop
Nice overview:
http://wiki.laoslaser.org/index.php/Installation_HPC2
Where goes what:
http://wiki.laoslaser.org/index.php/Mainboard_Rev3#Soldering_the_board

Revspace also has one:
https://revspace.nl/Lasercutter
Where to get plexiglass
www.bouwplastics.nl

Stuff i may need:
gedestilleerd-water
visicut inkscape plugin

inkscape