All posts by EEadmin

Micro Python with ESP8266 & Oled Display

How to load a test script

After loading python on your own system

Install esptool
pip install esptool –upgrade

Install AMPY
pip install adafruit-ampy

Download ssd1306.py from https://github.com/adafruit/micropython-adafruit-ssd1306/blob/master/ssd1306.py

Plug in the board and find the Com port that is created (mine was COM4)

Download the micropython from https://micropython.org/download#esp8266
Should save as a bin file like esp8266-20171101-v1.9.3.bin

Erase the board
python esptool.py –port COM4 erase_flash

Flash the board with MicroPython
python esptool.py –port COM4 write_flash –flash_size=detect -fm dio 0 esp8266-20171101-v1.9.3.bin

Bodge the ampy package

Open /usr/local/lib/python2.7/site-packages/ampy/pyboard.py. Find line 171. Specifically go to the enter_raw_repl method:

add a time.sleep(2). So it becomes
def enter_raw_repl(self):
self.serial.write(b’\r\x03\x03′) # ctrl-C twice: interrupt any running program

# flush input (without relying on serial.flushInput())
n = self.serial.inWaiting()
while n > 0:
self.serial.read(n)
n = self.serial.inWaiting()
time.sleep(2)

Create main.py

Using a terminal open the com port and at the >>> prompt write

f = open(“main.py”, “w”)
f.write(“print(\”main.py: Hello\”)\n”)
f.close()

Write the oled Library to the board

ampy –port COM4 –baud 115200 put ssd1306.py

Create a file called oledtest.py with the following content

import machine, ssd1306
i2c = machine.I2C(scl=machine.Pin(4), sda=machine.Pin(5))
oled = ssd1306.SSD1306_I2C(128, 64, i2c)
oled.fill(0)
oled.text(‘MicroPython on’, 0, 0)
oled.text(‘an ESP8266 with an’, 0, 10)
oled.text(‘attached SSD1306’, 0, 20)
oled.text(‘OLED display’, 0, 30)
oled.show()

ampy –port COM4 –baud 115200 run oledtest.py

Teslathon & tesla workshop/talk Venues needed

EE are actively looking for venues for teslathons in the East Midlands for next year.

Places to hold our events are getting few and far between, mostly because of our “special” requirements.

What is a teslathon : A tesalthon is a meeting of tesla coil enthusiasts. Our tesla coils vary in size from tabletop to 3M tall and are all built by amateurs.

I have been running teslathons for 18+ years and have Risk assessments and method statements to cover the H&S aspects to our hobby.

So what do we need?

The Must have’s

A room with tables a minimum of 11M x 8M in size, on the ground floor that can be blacked out and a ceiling height of ideally more than 4M. Bigger of course is better. We usually have 20 or so coilers and 30-60 visitors to the events.

Plenty of 13A sockets (for our bigger events, a 32A Commando or accessible cooker socket would be needed, or an electrician on site to give support.)
Some method of providing a separate electrical earth. 10 or more tables.

Tea and coffee making facilities 🙂

Other needs (can generally be worked around)

The room needs a minimum (ideally non) of Burglar alarm, Fire alarm or network cables. Electronic lighting can be OK, but they must be high the ceiling. Fire sensors are generally OK, but they must not be of the ionisation type.

Ideal Venues are usually industrial museums or metal skinned warehouses/barns as these have a minimum of electronic equipment. We would like to work with the venues own insurance if possible, but we can provide our own if needed.

I also arrange workshops and talks with lesser requirements, so most venues can be used for something.

We can work in two ways, either a daily rental for the hall, paid by us,or we can work as a ticketed event to raise funds or awareness for a museum, venue or charity.

Before any booking, I would need to assess the venue for safety and suitability.

Have a suitable venue? (Or would like a talk at your venue) contact me tesa@extremeeectronics.co.uk

Details of past events are here https://www.extremeelectronics.co.uk/cambridge-teslathon/ and here https://www.extremeelectronics.co.uk/nottingham-gaussfest/

Flashing Light Prize 2017 – 2

Flashing Light Prize 2017 second entry

So I had a better idea… and as far as I know there is no restrictions on entering twice.

This time, I needed some thing more impressive. I’d been tinkering with a demonstration of lighting a bulb with a single connection for a while, so I tied it in with that. Unfortunately the only (working) tesla coil that I have that has enough power (actually RMS current at the topload) is the Aetheriser. So that is the coil I had to use.

A quick test with a long filament lamp proved the idea workable, but the free connection got a bit warm (e.g. too hot to touch) so I added a brass ball protection to the free end

The large ball on the other end gives stability and stops the lamp from falling over.

The stills from the video.

and the last one of the failed cap end..

 

My other entry to Flashing Light Challenge 2017

Flashing light prize 2017

Details for the entry for the 2017 flashing light prize.

The Flashing Light Prize  is an informal & fun contest to find the most unusual way of flashing an incandescent light bulb.

So, being me, it had to include high voltage, and It had to use what I had lying around as I’ve been quite short of time recently.

My Wimshurst came to mind, but I wasn’t sure the two laden jars would hold enough energy to light a lamp. A quick test proved that as long as I was using small lamps, there was plenty of power available.

My initial tests failed, as the leads from the bulb made a point source that leaked charge away from the Wimshurst, so it never charged up to enough voltage. This was an easy fix, I attached a 1/2″ brass ball onto the bulb leads, with a 12mm Gap I go a flash rate of ~1Hz and ~40,000V, plenty for a 6v bulb 🙂

I had a few 6V 30ma Grain of wheat bulbs and these flashed really well from the sparks from the Wimshurst. The problem was after about 4 flashes that only just lit the bulb the filament would explode and leave a small arc lamp behind.

My thought was that the thermal shock from having 40,000V dumped into the filaments (rather than 6v) was probably something to do with the failure. I started to look around for a large HV inductance that would limit the inrush.

An Ignition coil secondary was put in series with the bulb and then I had a second thought, use it as a transformer to power the bulb at lower voltages.

So two bulbs were connected across the Ignition coil primary and the secondary was put via a spark gap across the Wimshurst terminals.  This flashed really reliably.  Power and speed could be varied with the spark gap, although at full separation the bulbs looked excessively bright so the rate was kept quite small.
2017 flashing light entry video

 

Wimshurst machine details/build

 

Incredibly, I won with this entry … So Chuffed !

Can’t wait until September to defend the title …

https://www.flashinglightprize.com/ 

Flashing light challenge 2017 my second entry

House breaking with a cheap Chinese laser cutter

First I do not condone house breaking, unless you own or are permitted to enter the property anyway. But there are instances where house breaking becomes a necessity.

We were working in the garden, our next door neighbour wanted to start strimming. Our Rescue Rottie/Great Dane has issues with hissy whirly noises, so we shut him inside, whilst we continued in the garden. 

The strimming started and he jumped up at the door, unfortunately he also turned the key in the lock, locking the  door, from the inside with the keys still in the lock, although we had keys they wouldn’t work. Our front door, also had keys still in the lock. Our dog had locked us out of the house 🙁

All other Windows and means of entry were fully secured. Not versed in house breaking, I know a couple of local lock smiths Ill see if they could help. A few phone calls later proved that they were all on holiday 🙁

OK so you hear of people breaking in when keys are in the lock, how hard could it be… Well first obstacle, we had a “high security letter box” that took me less than 10 seconds to remove with a pair of pliers from the outside, I’m glad I spent the extra on that!

The letter hole that was left just allowed me to put my hand into the door, nothing else. Even borrowing a small local kid didn’t help, the hole was too small. Being locked out also gave me a few other issues, all my tools were inside, but finding garden wire etc I tried to make a hook to remove the key.

No, the key needed to turn and be upright to be removed.

I then realised that I was left with assess to the most versatile tool a laser cutter.

I made a key spanner, actually I made two as I dropped the first one through the letter box, the second one had a piece of string attached, just in case.  After a little fiddling I managed to turn the key and unlock the door from the inside.

I even made a temporary replacement letter box with the laser cutter afterwards.

So why have I posted how to break into a house.

Because I couldn’t believe how easy it was. OK, I had a laser cutter, but making a tool like the one above could be done in a couple of minutes with a fret saw, and I’m sure they (or something better) would exist available on the internet. So the take away message is if you want to secure your house

DON’T LEAVE ANY KEYS, ANYWHERE NEAR THE DOOR 

The other thing is, I live on a street with a door that opens onto the pavement, I was trying to break into my house for over 30 minutes.

NOT A SINGLE PERSON THAT PASSED QUESTIONED WHAT I WAS DOING 🙂

Perpetual Motion

In the Royal institution’s museum there is a perpetual motion machine (used towards the end of this video  )

It occurred to me that this piece of equipment is over 100 years old and over that time it has regularly been used to demonstrate the futility of perpetual motion.

So it has been running, although intermittently, quite consistently for over 150 years, powered purely by presenters and demonstrators demonstrating that it doesn’t continue to run.

It’s therefore powered purely by the fact that it is a perpetual motion machine, and no doubt will continue to do so for hundreds more years.

Save

Tales Of A Cheap Chinese Laser Cutter – Extraction, Improving air flow.

Continued from Tales of a cheap Chinese Laser Cutter – Bed replacement

The cutter runs fine, but cutting anything away from top left was getting more and more of an issue. One of the biggest problems was the lack of air flow at the other corner (bottom right). This was visible as smoke not being extracted. The smoke from cutting at this end also reduces the available laser light by bing in the unfocussed laser beam meaning that you get incomplete cuts. The other issue is the smoke condenses on the optics, making the cutting worse.

Although adding an air assist would help (I may still do this) the cutting it doesn’t solve the other problems.

The real issue here is the asthmatic extraction fan in the unit. The fan wasn’t designed for laser extraction use, it is a repurposed and not very good, bathroom air ventilation fan.

Luckily, I was at an amateur radio sale and found a 6″ mains cooling fan for £1, for that money its got to be worth a go.

i needed to make an enclosure that would take the  fan, fit it to the cutter and to the existing 100mm pipe. Looking at the existing fan I decided to just add in the new one to the large flange and make a new plate to fit to the laser.

Taking off the old fan and the inner plate it looked an easy task, just replace this plate with a new one with the new fan.

So I cut and measured the laser, the fan and the old extractor, found a peice if 6mm acrylic and drilled mounting holes, all I needed to do was to cut two 140mm holes in the two peices of acrylic. Easy I have a Laser cutter…. So I reassembled the laser cutter and cut the circular holes in the mounting peices and then re-disassembled it.

I then mounted the fan on to the old fan.

and a plate to fit the slot on the back of the laser cutter

Slotted it in to place

A quick clean of all of the optics and tried some test peices.

A huge improvement – no smoke to be seen at all.

 

 

Nottingham Gaussfest 2017

One of the most popular Gaussfest that I’ve run. Loads of exhibitors and even more HV kit and packed with visitors. A great day, thanks to everyone that attended.

My coils

Jason’s Coil

Dave’s Coils

Alex’s Coils

Robert’s coil

Chris’s Coil

Steve’s Coils

Phillip’s toploads and ring flipper

Tony (Leicester Hack space) Wimshurst and jacob’s ladder

Coil brought to test and get running

 

General Gaussfest photos.

Video from Chris