Tuesday, 21 July 2020
An Adventure with Excel
Friday, 10 July 2020
Replacing 3D Printer Controller Board.
![]() |
| New board adapter shown in place. |
There was just one real concern, and that was the MOSFET controlling current to the bed heater. The SKR mini E3 was designed to work with a Creality Ender 3, which has a smaller build bed and therefore a less powerful heater.
MOSFETs and Power Dissipation
![]() |
| Board mounted on adapter showing underside |
![]() |
| Board mounted on adapter showing top side |
I couldn't find any sensible information about the Ender 3's bed resistance, power or current draw, but assuming it's going to be about the same as my Mendel, which has a similar bed size, 100W seems about right, which would give a current draw of about 4A since the Ender 3 also works on 24V. Given that I'm drawing more than twice that, the extra heatsinking is pretty essential. In practice, the heatsinks on the mosfets and also the board around them do get very warm, but not worryingly so.
Installation
Display & Interface
Wednesday, 24 June 2020
Temperature sensing - using an 'unknown' Thermistor
Thermistor Types & Marlin
#define TEMP_SENSOR_BED #define TEMP_SENSOR_BED 1000 #if TEMP_SENSOR_BED == 1000#if TEMP_SENSOR_BED == 1000
#define BED_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
#define BED_RESISTANCE_25C_OHMS 4675 // Resistance at 25C
#define BED_BETA 3885 // Beta value
#endif
The Maths Bit
The Science bit
Method
Results
A simpler alternative
Yet More 3D Printer Modifications
New Z-axis Lead Screws
Tuesday, 23 June 2020
More 3d Printer Modifications
New controller for the Copymaster.
OctoPi
Still with the Raspberry Pi theme, for the last year or so I have been using Octopi to control both of my 3d printers. Octopi is the Raspberry Pi version of Octoprint, which allows a host computer to send instructions to and receive telemetry from a 3d printer. This is done through a web-based user interface, i.e. any device running a web browser on the same network as the printer can can simply navigate to 'http://<host name of computer running Octoprint>.local' or 'http://<ip address of computer running Octoprint>' and see an interactive web page which will let them control the printer and monitor its progress. If the Octoprint host has a webcam, that can be used to make time-lapse movies of the printing process.
Shutting Down A Raspberry Pi
You can probably tell from the other posts in this blog that I'm a big fan of the Raspberry Pi microcomputer and have used it for several of my projects, usually without such niceties as a keyboard, mouse or monitor. Using it in this way raises the issue of how to shut it down nicely so as not to avoid corrupting its boot disc (i.e. the SD card) by switching off the power suddenly. My standard approach to this is to use a gpio pin to look for a signal to shut down the system. I also find it useful, or at least comforting, to use another gpio pin to make an LED flash to indicate that the Pi is running and another one to light another LED to indicate that shutting-down is in progress.
# Python Script to check for shutdown request, alternate blue
# and green LEDs when running and light a red LED when shutting
# down. When red LED goes out again, Pi can be powered-off.
# Works well with a common-cathode RGB LRD.
import RPi.GPIO as GPIO
from os import system
from time import sleep
# set up GPIO pins to check for shutdown request
# and to light up LEDs. Alternating Green/blue LEDs when active
# red LED during shutdown. Note sdcheck is active
# low, i.e. grounded through switch to shut down.
sdcheck = 26
redled = 19
grnled = 13
bluled = 6
GPIO.setmode(GPIO.BCM)
GPIO.setup(redled,GPIO.OUT)
GPIO.setup(grnled,GPIO.OUT)
GPIO.setup(bluled,GPIO.OUT)
GPIO.setup(sdcheck,GPIO.IN, pull_up_down=GPIO.PUD_UP)
green_on = 1
blue_on = 0
while True:
green_on = (green_on+1) % 2
blue_on = (blue_on+1) % 2
GPIO.output (grnled,green_on)
GPIO.output (bluled,blue_on)
if not (GPIO.input(sdcheck)):
print("Shutdown request received")
GPIO.output(grnled,GPIO.LOW)
GPIO.output(bluled,GPIO.LOW)
GPIO.output(redled,GPIO.HIGH)
system("sudo shutdown -h now")
break
sleep(5)
Sunday, 10 May 2020
Crop Rotator
Yes, the title of this entry is, of course a joke. Crop rotation doesn't mean literally rotating crops, but... well, when I came up with this I couldn't help recalling the episode of 'The Young Ones' where they get on University Challenge and Ric is taunting Neil about his swotting up whilst they're on the train to the TV studio. Swotting up on 'crop rotation in the 14th century', which, apparently, became considerably more widespread after someone called John invented a crop rotator. Back to the topic: A friend gave me this hanging chilli grower, which they found in a car boot sale, as I've been growing chillies on my windowsills for a few years now. I don't really have anywhere to hang it in my 1st floor flat, but my mum has a small greenhouse which I thought would be a better bet. Trouble is, the plants in this will only get sunlight when they're facing South(ish) and there will be at least one of them on the North side. Some means of turning it seems to me to be required here, and that's what the thing that looks like a satellite is. This is actually the Mk2 version. Mk1 used a lower reduction ratio and went around a bit faster than I'd like, plus it wasn't as neat looking.The two solar panels generate enough power, even on overcast days and right up to sunset on sunny days, to turn the chilli grower using a small motor and a 3-stage worm reduction gear. There's a small DC-DC converter to regulate the solar cells' output to 5V, at which voltage it draws about 25mA.
The main bearing and its aluminium cradle came out of an old water bath circulator. All the weight is supported by the bearing cradle and two steel bolts, the plastic parts don't have to carry it.
The plastic parts were designed using Open SCAD and 3d-printed. On the right here, we have the main parts, showing the cut-outs and supports for the gear train, motor and bearing cradle. The upper piece holds a second bearing to steady the main spindle. The main spindle itself was machined on a small lathe, drilled & tapped for the fixing bolt which holds a metal wire loop to hang the grower from.
Here's a couple of pics of the completed crop rotator, with and without the top cover fitted.
And finally, a short video of it running. It's not quite at full speed because the greenhouse is, as you can see, in the shade of a tree at the moment.









