09 feb

0 Comments

Speaking “Pyt-knap” / “Never mind button”

Af

A woman working in a kindergarten told me about a button they had for the kids. Whenever there was some dispute between some kids, an adult could ask them to press the button, in order to easen the kids ability to act by the meaning of the danish word “pyt” (meaning something along the words “never mind”).

However it turned out turned out the button was not a button after all but just a sticker! I thought the idea behind the so called “button” and the usage of it was fun, so I decided to make one for the kindergarten.

The solution was straight forward: Make a little box with a laser cutter, an isd1820, a button, a dc plug for the case, a lot of hot snot glue and a 5 V power supply. The box is made of 6 mm ply wood and measures 9x9x9 cm. The hole on the back is covered by the back plate where the screw in the wall is screwed in. To finish it all up I gave it two layers of varnish. If you want to build one your self, the OpenSCAD file is available here and an SVG (the green color should only be engraved) is available here (the green color in the SVG should only be engraved).

If I later on get a picture or a small video clip of the button in use in the kindergarten, I will update this post.

Pyt knap

28 jan

0 Comments

Reverse engineering Aduro Smart Response

Af

I have a fancy thermometer for my wood stove namely an Aduro Smart Response. The accompanying Android app basically shows a temperature graph, with guidelines as to whether the burning is optimal and when put in more wood. I have generally been content with the app: it is quite slow, but generally helps in more optimal burning. Recently however, the Android app has stopped working (something about connecting to a database), and this prompted me to start on a project I wanted to do for some time: get the data from the Smart Response unit into a database under my control.

The Smart Response unit uses Bluetooth Low Energy, and is powered by 3xAAA batteries (my batteries lasted for a year before replacing). Connecting to a BLE unit from Linux is quite easy, at least from the command line:

$ sudo hcitool lescan
LE Scan ...
B4:99:4C:25:12:B2 (unknown)
B4:99:4C:25:12:B2 Aduro demo
$ sudo hcitool lecc B4:99:4C:25:12:B2
Connection handle 3585
$ sudo gatttool -b B4:99:4C:25:12:B2 --interactive
[B4:99:4C:25:12:B2][LE]> connect
Attempting to connect to B4:99:4C:25:12:B2
Connection successful

hcitool is used to create a connection/pairing. gatttool is used to query the device interactively. Thereafter the device can be explored, to see which “handles” are available:

[B4:99:4C:25:12:B2][LE]> primary
attr handle: 0x0001, end grp handle: 0x000b uuid: 00001800-0000-1000-8000-00805f9b34fb #Generic Access
attr handle: 0x000c, end grp handle: 0x000f uuid: 00001801-0000-1000-8000-00805f9b34fb #Generic Attribute
attr handle: 0x0010, end grp handle: 0x0022 uuid: 0000180a-0000-1000-8000-00805f9b34fb #Device Information
attr handle: 0x0023, end grp handle: 0x0027 uuid: 0000180f-0000-1000-8000-00805f9b34fb #Battery
attr handle: 0x0028, end grp handle: 0xffff uuid: 0000ffb0-0000-1000-8000-00805f9b34fb # ???

The annotations on the right are mine; the UUIDs can be looked up under GATT services on the Bluetooth website.
For example, the battery status can be queried somewhere in the Battery handle group from 0x0023 to 0x0027:

[B4:99:4C:25:12:B2][LE]> characteristics 0x0023 0x0027
handle: 0x0024, char properties: 0x12, char value handle: 0x0025, uuid: 00002a19-0000-1000-8000-00805f9b34fb
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x0025
Characteristic value/descriptor: 5d # Battery level 0x5d = 93%

Now, the only unknown primary is from handle 0x0028 and higher. Let’s query those:

[B4:99:4C:25:12:B2][LE]> characteristics 0x0028 0xffff
handle: 0x0029, char properties: 0x0a, char value handle: 0x002a, uuid: 0000ffb6-0000-1000-8000-00805f9b34fb # 0x0a = R/W
handle: 0x002c, char properties: 0x10, char value handle: 0x002d, uuid: 0000ffb7-0000-1000-8000-00805f9b34fb # 0x10 = notify
handle: 0x0030, char properties: 0x10, char value handle: 0x0031, uuid: 0000ffb3-0000-1000-8000-00805f9b34fb # 0x10 = notify
handle: 0x0033, char properties: 0x02, char value handle: 0x0034, uuid: 0000ffb4-0000-1000-8000-00805f9b34fb # 0x02 = Read
handle: 0x0035, char properties: 0x08, char value handle: 0x0036, uuid: 0000ffb8-0000-1000-8000-00805f9b34fb # 0x08 = Write
handle: 0x0037, char properties: 0x08, char value handle: 0x0038, uuid: 0000ffb9-0000-1000-8000-00805f9b34fb # 0x08 = Write
handle: 0x0039, char properties: 0x0a, char value handle: 0x003a, uuid: 0000ffb5-0000-1000-8000-00805f9b34fb # 0x0a = R/W
handle: 0x003b, char properties: 0x08, char value handle: 0x003c, uuid: 0000ffb2-0000-1000-8000-00805f9b34fb # 0x08 = Write

The annotations on the right are again mine: they specify the char properties as looked up under “Characteristic Declaration”. Querying the char value handles gives some uninteresting values (0x00 bytes, etc.), but also some interesting ones:

[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 03 01 fd 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x003a
Characteristic value/descriptor: 44 65 6d 6f 20 20 20 00 # 'Demo \x00'
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x0034
Characteristic value/descriptor: c3 01 ba 01 c4 01 27 00 c2 01 d1 01

Querying a bit outside also gives some very interesting strings:

[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002b
Characteristic value/descriptor: 41 64 75 72 6f 20 47 65 74 4c 6f 67 # 'Aduro GetLog'
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002f
Characteristic value/descriptor: 41 64 75 72 6f 20 4c 69 76 65 56 61 6c 75 65 # 'Aduro LiveValue'

At this point I tried to look for values that changed, and also manipulating the device (temperature, playing with the damper that is connected with a microswitch). It turns out that 0x002d and 0x0034 changes values, but 0x002d changes the most. Is there a pattern?

Characteristic value/descriptor: c4 01 08 01 fb 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 1f 01 f3 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 3c 01 ec 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 5c 01 e2 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 9f 01 c3 00
[B4:99:4C:25:12:B2][LE]> char-read-hnd 0x002d
Characteristic value/descriptor: c4 01 0f 02 9d 00
#counting UP DOWN

Something is counting up, while something else seems to be counting down; this was while the temperature was cooling down. As 0x002d allows for notify, we can even ask for notifications by writing 0x0100 to 0x002d + 1:

[B4:99:4C:25:12:B2][LE]> char-write-cmd 0x002e 0100
Notification handle = 0x002d value: c5 01 43 00 2a 01
Notification handle = 0x002d value: c5 01 44 00 2a 01
Notification handle = 0x002d value: c5 01 45 00 2b 01
Notification handle = 0x002d value: c5 01 46 00 2c 01
...
Notification handle = 0x002d value: c5 01 f0 01 94 00
Notification handle = 0x002d value: c5 01 f1 01 94 00
Notification handle = 0x002d value: c6 01 00 00 93 00
Notification handle = 0x002d value: c6 01 01 00 93 00

In the end of the series I manipulated the damper. Trying to identify the temperature, the last 2 characters seems the most promising: values from 0x93 (147 C) to 0x012c (300 C) seem reasonable from what I have seen previously. The middle 2 characters always increase by 1, so it is probably a datapoint counter. The first 2 characters seems to increase by using the damper.

This was implemented in a small Python script, using the Gattlib, pyAduroSmart.py.

I hooked this into my home monitoring system (more on that in a later blog post), and now have a nice graph of the number of firings, and the temperature:

Gemt under: Extern, HAL9k

07 nov

5 Comments

Motorising my old Long John

Af

A few months ago I decided I wanted to start biking to work. Being lazy and living in a hilly town, I started looking at E-bikes. I already had an old Long John (from 1941), and really like how it handles, so I looked a bit at the modern equivalent: Harry Vs. Larry’s Bullit, but the price, about the same as a used car, for the electric version, was just too high. So next step was looking for a conversion kit for my old bike. It was in real bad need of a new bottom bracket and new pedals, so naturally I started by looking for a crank motor. After being confused about the whole 8fun/Bafang stuff, I figured out that they don’t support coaster brakes, which is the only form of brake on my olde bicycle. So that solution was out of the question. Next I looked at hub motors, but because both the front and back wheel are odd ball size, I quickly hit the wall again.

Luckily @mchro pointed me towards Boxbike, who luckily had a crank motor, which supports coaster brakes. The price wasn’t too bad, so I ordered a kit consisting of a motor, pedal arms, battery, chain, controller and all the various wires. Boxbike really provided nice support. I had ordered a brake lever, which was not supported by the controller I had ordered, so they called me up, to make sure I knew what I was doing, which I obviously didn’t, and offered me a larger battery instead. They also told me to call them any time, incase I had any trouble figuring out how to mount the kit.

My bicycle loaded with goodies.

My bicycle loaded with goodies.

To have an easier time with the job, I made a small side project, and mounted a bicycle hoist in our space.

img_20161023_175844

Next step was removing the old bottom bracket, the previous owner had mounted pedals of the wrong kind for the bottom bracket, so about twenty minutes with an angle grinder later, I had the following view:

img_20161023_152551

I thought that i needed some sort of hook or c spanner, to unscrew the bottom bracket, but behind a cover plate, it turned out that I needed some sort of weird 3mm pin spanner. Which of course I didn’t have. So after a break I ended up welding an old spanner directly to the bottom bracket bearing face.

20161026_182651 20161026_182755

20161026_183302

Wohoo, on the the next problem 🙂

So the state after removing the bottom bracket looked like this.

img_20161026_183728

Sadly the motor needs just about 180 degrees to fit, which the frame obviously didn’t have.

20161026_190900

20161026_190841

So long story short, took a hack saw to the frame, and made room. And a very simple installation, and a lot of cable ties later, and my bike was upgraded with a 250W motor 🙂

img_20161026_222700 20161026_222806

Gemt under: Projekter, Udvalgte posts

02 nov

0 Comments

Solder fume lamp

Af

DSC_0011

I needed something to remove the smoke when soldering and build this USB powered solder fume fan lamp with an ESP8266 arduino, WS2812b/Neopixels, a fan with an active coal filter and a PIR sensor.

See a short demo of the lamp on Youtube.

Scad/svg files are available on Thingiverse.

The case is lasercutted in 4 mm plywood.

When there is no movement beneath the lamp the fan turns off after e.g. 60 seconds (can be extended to e.g. 1800 when holding down the fan button) and the LED turns off after 1800 seconds of inactivity. The LED intensity can be dimmed by holding down the LED button.

Parts list:
* 4 mm plywood for the laser cutted case
* Ikea Forså lamp ( http://www.ikea.com/us/en/catalog/products/80146777/ )
* WS2812b / Neopixel strip (30 LED/m, 12 LED’s are used for the lamp. I bought it on Ali Express)
* Level shifter from 3.3 V to 5 V for the 3.3 V output from the PIR sensor (https://www.adafruit.com/product/757 I bougt it on AliExpress)
* 1.5 mF capacitor betwen +5 V and ground near the Neopixels, for evening out voltage drops and ripple from the USB power.
* PIR sensor (https://www.adafruit.com/product/189 I bought it on AliExpress)DSC_0057
* Fan (80 mm, 12 V. It was just laying around)
* Wemos D1 mini (https://www.wemos.cc/product/d1-mini.html)
* Wemos ProtoBoard (https://www.wemos.cc/product/protoboard.html)
* Wemos RelayShield for turning the fan on and off (https://www.wemos.cc/product/relay-shield.html)
* MT3608 DC-DC Step Up Power Module from AliE for the power for the 12 V fan
* Activated coal filter (adjusted the size with a scissor) (https://www.conrad.de/de/aktivkohlefilter-3teilig-toolcraft-79-7201-588546.html i bought it on AliE)
* two push buttons, connecting the pins from the ESP8266 to ground.
* USB cable
* A few strips, pig tail wires, bolt and nuts etc.

DSC_0056

The case is glued together with normal wood glue and the PIR sensor and the WS2812b Neopixel strips are glued against the case with cyanoacrylate. The DC-DC converter is fixed with a cable tie. The Wemos D1 mini is fixed with a small bolt through a drilled hole in the ProtoBoard. The capacitor and the level shifter is glued with a hot glue gun. Be aware that there is very little room for the boards and the wires. If I were to build it again I would make some more room. Also the “stack” of the Wemos ProtoBoard, D1 mini and RelayShield is higher than the fan + activated coal filter, so it sticks out of the top, which I think is fine. All the parts do not need to be hidden away for the eye to see :-)

The software is available at:

https://github.com/sman-dk/arduino/tree/master/solder_fume_lamp

Since the ESP8266/Wemos D1 mini has wifi it can be made controllable via your smartphone etc. At the time of this writing I have no use of this, so for now I have not implemented anything fancy yet :)

DSC_0065

IMG_3547DSC_0055

Power usage when the lamp and fan is active
Power usage when the lamp and fan is active
Power usage when idle
Power usage when idle

19 okt

0 Comments

Aarhus Mini Maker Faire 2016

Af

Ligesom i 2014 og 2015 har vi også i år været på Mini Maker Faire i Aarhus. Denne gang var vi otte personer, og vi havde igen en masse forskellige ting med:

Kørestolsrobotten

vil nogen nok kunne genkende fra sidste år (faktisk er det ikke den samme, men en ny lavet fra bunden). Lige som sidst kunne den styres med en PS3-controller, men den nye version havde også en robotarm som også kunne fjernstyres. Om søndagen fik vi også monteret et par meter RGB LED-strips, hvor man naturligvis kunnne styre lysmønstret fra fjernbetjeningen.

Da Dokk1 er ved at blive renoveret, kunne vi desværre ikke rigtig køre udenfor i år, men robotten var igen et stort hit især hos børnene.

3D-printer

Ingen MMF uden 3D-printer. Denne gang havde Anders medbragt sin hjemmebyggede Alu-Ultimaker (se billede nedenfor) med diverse modifikationer.

Neopixel-display

Lars havde medbragt sit 24 × 24 pixel RGB LED-display, styret af en ESP8266 og med en lille joystick, så man blandt andet kunne spille Snake.

mmf2016_ultipixel

7-segment displays

Årets tema var ure, da Anders havde medbragt både et par små ure og et stort 7-segment display, lavet med RGB LEDs monteret i en laserskåret kasse af krydsfiner og acryl.

mmf2016_ure

Kugleklokken

Og det leder så let og elegant hen til en lidt anden slags ur, som jeg havde bygget – her vises tiden med 4 cifre dannet af stålkugler i en 5 × 7 matrix. Kuglerne flyttes rundt af en elektromagnet, som løftes op og ned af en servo. Bevægelserne i X- og Y-retningen klares af en Roland penplotter, som også tidligere har været at se på MMF.

Magnet i kobberrør

En meget simpel ting, som vakte stor forundring, var en kraftig neodym-magnet som kunne falde ned i et kobberrør. På grund af hvirvelstrømme i kobberet opstår der en bremseeffekt, som gør at magneten synker langsomt ned i røret.

mmf2016_magnet

Tubus One

Asbjørn præsenterede sin pegepind til smartphones og tablets.

Sommerhack-skilt

Der skulle naturligvis også gøres reklame for næste års Sommerhack, så Georg havde medbragt skiltet.

Pegepibe

Når man er på MMF, har man jo ofte brug for at pege på ting – og jævnfør devisen “folk, der peger med pibe har altid ret” sørgede Jesper heldigvis for at vi havde en pegepibe.

Pegepibe

Pegepibe in action

Alt det andet

Nåh ja, så havde vi også en 3D-printet robotarm, et skilt skåret på lasercutteren, et hjemmebygget tastatur, et Hal9k LED-skilt som ikke var helt færdigt, en laserskåret folde-ud æske, nogle 3D-printede nøgleringe som vi gav væk til børnene, og en skærm med lysbilledshow.

Her en kort video som viser vores stand:

Og til slut en tur igennem hele Mini Maker Faire:

Gemt under: Events, Extern, Udvalgte posts

01 okt

0 Comments

Laserskåret parametrisk syæske

Af

Nu hvor vi har fået en lasercutter i spacet, er vi mange der har leget med at lave blandt andet æsker og kasser. Jeg faldt over denne fine fold-ud-kasse, men den var designet i 3 mm plade. Jeg havde ingen 3 mm plade, men derimod læssevis af billig 4 mm krydsfinér. Og da larsch fra spacet havde lavet en fremragende kassegenerator i OpenSCAD, var det nærliggende at bruge det som udgangspunkt. Mit hack kan beskues på GitHub, og den første udgave kom til at se sådan ud:
foldet
udfoldet

Gemt under: Projekter

23 maj

0 Comments

OpenSCAD: Funnel and Cylindrical Coupling

Af

As part of another project, I found myself in need of a funnel shape as well as a cylindrical coupling in OpenSCAD. Now, the straight forward approach would be to make a first-order approximation using a cylinder with two different radii to create a cone. While this solution would surely work for most cases, it is not as aesthetically pleasing as the real things, at least in my mind. As I couldn’t find any existing reference designs online, I decided to make and share a solution. The modules can be found on my GitHub: https://github.com/alexbirklykke/openscad

Both solutions use the rotate_extrude function in OpenSCAD, which takes a 2D polygon and rotates it around the z-axis. For the funnel I used a 2D version of the funnel surface function and for the coupling I used a selection of sigmoid functions. In both cases, the modules behave like the native cylinder module, but with additional shape and slice parameters that control the contour and number of polygon points of the drawn objects. For the cylindrical coupling it is also possible to choose between different sigmoid kernels (the standard sigmoid function, tanh, linear, and two other algebraic sigmoids) to tweak the contour even further.

Funnel

Funnel

Cylindrical coupling

Cylindrical coupling

Gemt under: open source, Projekter

03 maj

0 Comments

Hal9k tager på Sommerhack!

Af

Så sker det! OSAA og Hal9k inviterer til campen “Sommerhack” sidste weekend i august. Tag dit telt og computer under armen og kom til en maker-/hacker-/teknologi-camp i Midtjylland.

Tag gerne familien med til hygge i det fri. Vi planlægger også at lave workshops for børn.

Til Sommerhack er der spændende projekter, talks, mad inkluderet og god stemning omkring bålet om aftenen i fællesrummet “pejsestuen”.

Medbring gerne et eller flere projekter, hvis du har noget du arbejder på eller har bygget, og bliv inspireret af andre deltageres kreative og vilde idéer!

Der er plads til at du kan sidde med din computer, 3D-printer, loddekolbe eller hvad du nu har med, nede i det store bindingsværkslokale “pejsestuen”. Vi sætter et antal langborde op med el og netværksswitche, og laver et hackerområde hvor du kan sidde. Ved bordene rundt om den åbne pejs/ildsted, kan man sidde med sin computer og programmere etc., ligesom vi også her har fællesspisning morgen, middag og aften.

Hver dag vil der være talks om forskellige emner inden for bl.a. teknologi, elektronik og software.

På campingområdet er I velkomne til f.eks. at tage et fælles telt med, hvor I kan lave et “hackerområde”. I er velkomne til at samle jer i små “villages” med et fælles tema etc., som det kendes f.eks. fra OHM2013.

Vi håber på sol og sommer og dasen på stranden ved søen. Men fortvivl ej hvis der kommer en byge. Vi sørger for at der er plads til alle i fælleslokalet, og afhængig af deltagerantallet lejer vi også et stort festtelt, med fast bund og langborde mv., selvfølgelig også med el, WiFi og kablet net.

Rammerne er lagt og kun fantasien sætter grænser (næsten) for hvad I kan gøre eventet til.

Vi glæder os til at se jer!

Sommerhack 2016 arrangeres i samarbejde med IDA Embedded, Teknisk landsforbund og PROSA. Medlemmer af IDA, TL og PROSA har mulighed for at købe billetter til en reduceret pris.

Se mere på http://sommerhack.dk

Gemt under: Projekter

02 maj

0 Comments

Indkaldelse til ordinær generalforsamling i HAL9k torsdag 2016-05-26 kl. 19:30

Af

Følgende er dagsordenen til den ordinære generalforsamling i foreningen
HAL9k torsdag 2016-05-26 kl. 19:30 på Sofiendalsvej 80, 9200 Aalborg SV.

Dagsorden til generalforsamling:
1. Valg af ordstyrer.
2. Valg af referent.
3. Valg af to stemmetællere.
4. Bestyrelsesformanden og kassereren aflægger beretning, samt
præsenterer planer for den kommende sæson.
5. Kassereren fremlægger det reviderede regnskab til godkendelse.
6. Forslag fra bestyrelsen eller medlemmerne, herunder
vedtægtsændringer, behandles.
7. Behandling af eksklusionssager.
8. Valg af revisor.
9. Valg af bestyrelse.
10. Valg af op til to suppleanter.
11. Behandling af indkommende forslag.

Vedhæftninger:
* Årsregnskab 2015 (Bedre formateret)

Balance pr. 31/12-2015 ved regnskabets afslutning var 59.493,69 DKK

Indkomne forslag skal være bestyrelsen i hænde senest syv dage før
generalforsamlingen.

Vi hackes ved,

Bestyrelsen Hal9k

Gemt under: Projekter

20 feb

1 Comment

Lasersaur (II)

Af

Som tidligere nævnt her på bloggen har jeg i efterhånden lang tid været i gang med at bygge en lasercutter, og nu er det vist tid til endnu en statusrapport.

Det er efterhånden ti måneder siden, at jeg modtog et par kasser med en masse aluprofiler:

profiles

Siden august, hvor det første indlæg blev skrevet, er der sket en hel del, blandt andet:

  • Vandkøling er blevet færdig – mere herom i et senere indlæg.
  • Styringen er gjort færdig, på nær et par småting.
  • Der er monteret en pumpe til air assist, som blæser røgen væk fra linsen under skæring.
  • Diverse paneler og plader er skåret til og monteret.

I december var tiden så moden til at få bestilt selve laseren + strømforsyning. Efter en del forgæves forsøg viste det sig at strømforsyningen var blevet ødelagt under transport – der var to store revner i printet:

psu_pcb1

Det blev meldt tilbage til sælgeren, som uden brok lovede at sende en ny. På grund af diverse forhindringer som ferie i Kina, diskussion med SKAT om hvorvidt der også skulle betales told af erstatningen osv. fik jeg først den nye strømforsyning i februar.

I mellemtiden lykkedes det dog at få repareret den første strømforsyning så den kunne bruges til test, så optikken var næsten på plads på dette tidspunkt. Og i denne uge lykkedes det så at lave den første rigtige test:

Man ser tydeligt at air assist er ret effektiv til at blæse røgen væk.

Siden da har vi eksperimenteret lidt med at skære i bl.a. kork:

kork

Der mangler stadig en del før vi kan begynde at tage maskinen rigtigt i brug – blandt andet skal den RFID-læser som sidder på maskinen integreres i softwaren, så det kun er de brugere der har fået instruktion der kan benytte den.

rfid

Lidt flere billeder:

aiminglaser1

aluparts

bracket4080

driveboard

firstburn

nozzle

tube

xdrive

ydrive

Gemt under: Projekter, Udvalgte posts