I was thinking about some Panduit modular patch panels, but never bought it. So just left it.
2023. szeptember 16., szombat
Building my rack(s)
I was thinking about some Panduit modular patch panels, but never bought it. So just left it.
2022. június 6., hétfő
CNC Router Reborn 3.
2022. május 7., szombat
Octoprint in docker
This is just a short title of this article. I would rather call it: "Octoprint in those chip shortage times"
Today it is not so easy or cheap to acquire a good platform for Octoprint. Raspberry Pi almost seized to exists. If you can buy it somewhere it cost a lot.
I'm a DevOps guy nowadays for profession. I fell in love with the containerized (and orchestrated, cloud based iaC) infrastructures. The Octoprint is a good candidate for this, as itself is unable to handle more than one 3D printer.
Actually I've several tasks in the lab, what need server side background computing. So, I just picked up an old (not too old) PC from my ceiling (the most important requirement to have a 64bit CPU already).
Installed a shiny new Ubuntu 22.04 LTE Server on it. There is only thing I installed during the setup process: OpenSSH. I don't install Docker from snap, what suggested by the install process. It caused problems to me, so I leave it out for now.
At the first login I switch to root console (sudo su). I do this for comfort. I asked for password once during this process.
Docker
Install docker from docker's repository (instead of Ubuntu)
curl -s https://download.docker.com/linux/ubuntu/gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/docker.gpg --import
chmod 644 /etc/apt/trusted.gpg.d/docker.gpg
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce docker-ce-cli containerd.io
apt upgrade -y
Note: If you run it on Raspberry PI the [arch=amd64] should be changed to [arch=arm64]
Static IP
I suggest to fix the IP address of the machine some way. Right now I'm using a pathetically shitty router from the provider, but at least it is able to add static lease to the DHCP service, so I choose this. On the other side I'm not so fortunate with it's DNS service. So with the naming I'll relay on the host file and not a DNS.
Proxy
I'd like to be able to access the services with name, instead of IP address and port. To be able to achieve this, the first thing I install is the jwilder/nginx-proxy, what I use frequently for this task
docker run -d -p 80:80 --restart=always --name=proxy -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
mkdir -p /data/nginx-proxy
Portainer
As I'm using mostly command line to manage docker, it is a good idea to have a kind of dashboard to see, what is happening. I'm using Portainer for this for a long time now. Here is the first time when it advisable to have a folder, or a named volume on the host to map as data into the container. Here I choose a folder for this. It will allow me later to mount some external storage (NFS in a NAS device in my case) to hold and backup this data.
So just add some folder for it (we will need one for Octoprint also, so I create it here also):
mkdir -p /data/portainer
mkdir -p /data/octoprint-geeetech
chmod -R 777 /data
Install the Portainer:
docker run -d -e VIRTUAL_HOST=portainer.it-pro.local -e VIRTUAL_PORT=9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer:/data portainer/portainer-ce
Now try out if our Portainer is working. You need to add the Portainer in the name resolution in some way. Either as a CNAME record to the DNS or the host file in your client machine. In my case it is the later one on my Windows machine (c:\windows\system32\drivers\etc\hosts)
This case I add the following:
192.168.0.10 portainer.it-pro.local
From your browser you can connect to the Portainer and setup your user:
Device file
lsusb -v
This will give back all of the parameters your device have. You can collect the VID, PID and the serial number from it.
My printer report this:
Based on this, you can add the creation of your device alias to the udev rules:
echo 'SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A903RZMJ", SYMLINK+="ttyGeeetech"' >> /etc/udev/rules.d/99-usb-serial.rules
Reload the rules:
udevadm control --reload-rules
You can check with ls -la /dev/tty* if the device file is in it's place
The udevadm command wasn't work for me (probably disconnecting and reconnecting the printer does the trick), so rebooted the machine, what resolved it:
Octoprint
Last piece of the puzzle is the Octoprint itself:
docker run -d --restart=always -v /data/octoprint-geeetech:/octoprint --device /dev/ttyGeeetech:/dev/ttyACM0 -e VIRTUAL_HOST=geeetech.it-pro.local -e VIRTUAL_PORT=80 --name octoprint_geeetech octoprint/octoprint
One additional line added to the hosts file:
192.168.0.10 geeetech.it-pro.local
Now you can connect to the Octoprint from your browser:
2021. január 31., vasárnap
Hi-Fi Rack - Motorized turntable tray 3.
This year I decided, to complete some previously abandoned projects of mine. I'd like to finish one of those in every month. It is just a plan and not a promise (I don't want to fell into the trap of unkept new year's resolutions).
The first one in the row (for January) is my motorized turntable tray. The previous posts about it can be seen here:
- https://pakahuszar.blogspot.com/2019/12/hi-fi-rack-motorized-turntable-shelf.html
- https://pakahuszar.blogspot.com/2020/01/hi-fi-rack-motorized-turntable-tray-2.html
Since I restarted January, many things happened with it:
- Added the final electronics
- Changed the TI DRV8825 stepper driver to Trinamic TMC2209
- Almost completely rewritten the code, based on TMCDriver and AccelStepper, while keeping the original touch sensor library.
- There was an achievement from my side, that after a long struggling period, my 3D printer is back online and working stable, so I was able to add 3D printed parts. This way a new cable management arm come into picture instead of the unreliable tape used previously. It is used for the touch sensor cable and the mains cable. For the audio cable I may create a second arm sometime.
- I also 3D printed the holder for the connector at the back panel.
- Created a kind of power breakout box (temporary solution until the proper supply is made):
It has: - +12V - Wall Wart adapter for a time being
- +5V - Wall Wart adapter for a time being
- Earthing (for the touch sensor)
- Serial connection
- Mounted it into it's final place
While I was writing the serial communication part of the code (it will be used later), a weird issue raised.
The connection to the PC just created unusable data stream. A complete mess. Even I changed the USB-Serial adapter. I didn't understood why. Then an idea pop into my mind, and...
- A better GT2 pulley mount
- A second cable management arm for the audio cable
- The next phase of the project, what will contain the proper power supply also
2020. november 8., vasárnap
Antenna holder
In the last few years I actively building my retro Hi-Fi sets (I don't know, when and why this started, but this is the case).
I still listen FM radios. Unfortunately the cable provider at my home upmix the FM stations into the TV frequencies and also provide them as digital channels also TV compatible. This make me impossible to listen radio on my collection of FM tuners, without proper antenna.
First option would be to build antenna to the roof of my house. I drop this idea immediately didn't want to invest the money/time to do this.
Tried to find some in room antenna, but my efforts failed. They are only selling TV antennas.
Finally I found some antennas on the Aliexpress, what was built for boomboxes or for those inexpensive FM capable bluetooth amplifiers widely available. Those also have F plug connectors, what I used several times previously.
First attempt to use this give me little success. While it was working the tightening it to the back of the radio, wasn't working properly.
Later I had the Idea, to 3D print some kind of holder for it. So I designed one:
Printed:
2020. augusztus 15., szombat
3D printed tape deck button
In the last few months I was struggling a bit with my 3D printer. Even I was blaming (just in home, with no actions) the filament manufacturer that they mislabeled the filament (getting PLA instead of PETG).
Finally after several trials, correct leveling and flow, the printer went back to the acceptable and more importantly stable operation.
I got a task from a friend to print a replacement button for an old tape deck button. It is broken and unobtainable:
It was a quite complex object, so designing took a while:
And the result:
Sanding and painting is not on me. :-D
2020. április 9., csütörtök
HP 3488A
It is started with a picture on facebook about a Kenwood analog two channel AC voltmeter. It can be nicely used to check stereo audio equipment channel differences. I love the concept, but still I'm not an analog meter guy.
I was thinking. What if I pickup one of my digital bench meters and develop some desktop software around my own (still in development) GP-IB USB adapter, and add an uncontrolled MCU based channel switch. Uhh, this sound ugly, in addition, this is not the post where I will explain it. Just get it, I'm developing it, and publishing soon.
So go back: I chosen one of my HP 3478A 5.5 digit multimeter for this. And here come a few things.
- I need a switch for the project
- The display of the 3478A is a heap of crap without backlight
- I don't want to kill the original display on those unit, so get something similar, cheaper.
As usual I was looking around the eBay. And look what I found. Two HP 3488A. those are loaded with cards (usually you can find it empty), for €102 delivered. So I bought it immediately.
It is a good practice for the display modifications, if they work (the seller didn't guarantied it), can be used as a switch for the project above, and also for other purposes. Also, it nicely fit into my test equipment collection.
So here they are:
First of all, I removed all of the cards, cleaned the units (get rid of all of the stickers, dirt)
Let see the inventory:
- Two HP3488A units. One of it miss its power button. No stands.
- Two 44471A General Purpose relay cards. One of it even has the connector block, the other don't
- Two 44470A Matrix relay cards. Both of them with connector block, just from one of the blocks the plastic insert was missing
One misterious, HP branded, and hacked - some (not even nice) modifications are made by one of the previous owners.
This is the mysterious card, I would appreciate, if somebody can give me any info on it:
After a bit cleaning, I tried out the units. for the first smoke test, both looks like working, the self tests are succeeding, I can hear the relay click from console, and from remote GPIB commands.
As you know, I'm in the 3D design, and printing for a while.
Here I needed two missing plastic parts. One for the power switch replacement
And one for the connection block insert.
I designed both, in my regular OpenSCAD:
Here they are printed:
Left is the original, right is the printed:
Now, the power button in its place:
Project of getting in shape the HP 3488A units now completed.
2018. június 9., szombat
2018. május 31., csütörtök
Titan Struggling
2018. május 12., szombat
Leather instrumentation microscope
A special microscope exists on the market, what has heated bed. It can be used to examine samples from old artifacts before restoration. It specifically used for leather objects in our case, but it can be used for other things also.
The goal is to determine the exact temperature when certain change happen in the material.
This is a time consuming task, the currently used equipment is fairly old, and limited in functionality.
I decided to design and build a new one.
"If the only tool you have is a hammer, you tend to see every problem as a nail."
So, build a 3D Printer!!!
The plan is the following:
Hardware (mostly):
- Build a heated platform, controlled from an Arduino Mega, Marlin firmware and use PID control for the bed, using an external MOSFET. Measured with the usual 100K NTC (actually disassembled one from the "anettka" original MK8 head).
- Variable intensity lighting from the bottom (Case lighting from the Marlin)
- Z axis leadscrew with a Nema 17 stepper DRV8825, and endstop(s). A microscope camera mounted on it. The axis controls the focus of the camera
- The camera and the Arduino is hooked onto a PC via usb
I plan to write the following in C#:
- Control the heating through gcode to achieve the required heating curve (PID tuning also involved)
- Record the camera image with timestamp and temperature
- Overlay the parameters (time, temperature) into the recording
- Manually control the Z axis from the PC
Autofocus based on the camera picture, convolution matrix and similar computer vision voodoo
For the video and camera handling I plan to use aforge.net framework, what I already used before.
2018. május 1., kedd
Robo3D reconstruction
In the last month I had not too much time to work on my projects. I just focused on one thing.
It was almost five years ago that I started my long struggling journey in the 3D printing. At that time my intention was to use the printed parts in my electronics projects and not to involve myself in the technology. This changed since, learned a lot. The main reason is that the printer I bought the Robo3D is a heap of crap. It took me two years to get some acceptable results. Then it broke once more, and I put it to the side until now.
I wanted to have a 3D printer in the office, so I repaired the Robo.
- Printed a new improved Greg's wade extruder
- Designed a new object heater
- Replaced the Z endstop with capacitive sensor (actually works quite well with the glass only bed)
- Replaced the electronics with a completely new Arduino Mega + Ramps + DRV8825 set
- Added a graphic LCD
- Added cooling for the electronics (a computer HDD cooler)
- Built a customized current Marlin for it
- Added a case light (two LED strips to the top)
- Replaced the E3D v6 to a new one (with the cartridge type heather block)
- Replaced most of the cabling
Here is the result, with the first print on the bed:
Just some gluing and cable tightening left for today until I can bring it to the office.
2018. február 19., hétfő
Anettka (Anet A8)
As I see the prices dropping, I couldn't resist anymore. I ordered an Anet A8 from the German eBay. It cost me €130 + €15 shipping. It arrived in a few days.
- The build instructions I found is clearly not for the kit I bought. I think the printer has several revisions, and therefore the documentation need to be handled "creatively".
- The whole thing is easy to assemble. If you get use to the nuts inserted into the acrylic frame.
- I don't understand the provided screw drivers. There is no screw fits to it.
- The quality of the timing belt provided is the worst available on the market. It is the plastic kind without reinforcement.
- The tightening of the timing belts are always an issue. Same here. For the Y axis it can be handled by loosening the screws of the motor and the pulley on the other end before mounting the belt ends to the Y carriage.
- For the X axis the situation is not as good as for the Y. The construction itself has design flows. There is nothing in your hand to tighten the belt, but even if you can handle it, the axis is tightened against the Z guiding rails (and not against the X rails), what create a force to those rails, what has to be avoided. Here comes the one and only modification I made for the original build (I'm planning several after the first working build). I printed this:
https://www.thingiverse.com/thing:1683070
- Fortunately my Geeetech printer was able to do this, so I didn't struggle with the build without this component.
- The rumpled masking tape on the build platform is a joke not something you can print on.
- The labeling of the various cables are excellent. It makes easy to connect everything together.
- The UI of the firmware is extremely slow. I don't get why need to animate on alphanumeric display with an 8 bit processor (Marlin is coming).
- The extruder: pro: it has an all metal heathbreak - no teflon tube inside, con: can't be removed, disassembled without loosing the bed leveling. It is a problem without autoleveling
2018. január 7., vasárnap
VESA Monitor Stand
So I designed and built a new one.
The original status:
The stand design:
(The gray parts are aluminum extrusions)
The parts:
Yes you see correctly. It is a weight used for exercise in the gym. :-D
Assembled:
The monitor built on it:
In it's place:
Now I can use that shelve.
The files are published here: https://www.thingiverse.com/thing:2749210



































