A következő címkéjű bejegyzések mutatása: 3D Printing. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: 3D Printing. Összes bejegyzés megjelenítése

2023. szeptember 16., szombat

Building my rack(s)

In my previous lab, I had a small (27U) rolling rack at the side of my desk. When it finally got its shape, I started to move to my new lab. The equipment removed the rack disassembled.




I was a bit depressed on this as I had the feeling I'll never be able to put this together once again.
As I was reading things on the Facebook, I seen a guy trying to sell a whole bunch of outdated Cisco networking equipment. Nobody was interested, there came ugly comments on it, to throw the whole thing to the trash.
I seen a potential on something. Those Cisco units were installed into rack. So I wrote to him, if the rack containing the switches are on sale.
So I've two Rittal 42U height 600x800 racks for $100 each. I had some cleaning, metal work and paint repair with it (full repaint wasn't required, it has almost no rust just some dirt). One set of the vertical rails are not compatible, one rail mount was missing. Also I wanted open frame rack, so removed all of the doors, side panels, back panels.
Also I wanted to be able to move it on some rollers, but not every direction, just strictly need to pull out from the wall to be able to access the back. So I made legs with bearings as rollers.
In the last week finally put back most of the equipment to it (some not fit, it will be go into the other rack when I'll able to find time to rebuild the back vertical rails.


One of my problems with the rack, how to access the equipment connectors on the back, from the front of the rack. I wanted something modular to be able to put various type of connectors to it.
Built a 1,5U unit onto the top of the previous rack from aluminum extrusion a 3D print. It failed. Wasn't precise enough, won't fit things I wanted to put in.
I was thinking about some Panduit modular patch panels, but never bought it. So just left it.
I put this thing to a side for years.
When I started to build my new rack a few month ago, I just seen something interesting on the net. Asked the owner, what he was using. It turned out, It is a Middle Atlantic Products UCP series modular kit: https://www.legrandav.com/products/accessories/connector_panels/ucp_hinged_frame_kit/ucp-sf
It has two issues for me: It is not on sale in Europe, it uses imperial screws what isn't easy to source here.
I designed and built a 3D printed 3U height modular front panel. It can accommodate 16 modules. It is great, I put it into the rack already, with the breakouts of the four channel HP 6627A power supply.


This could be the final solution, but...
...when it was already built just realized, there exists something called Eurorack Modular Synths. It perfectly match with my ideas. I bought two set of rails.


The 19" rack mount was not included, but by surprise, the original endpieces are already 3D printed


The plan is to design a new endpiece with rack ears.
In the first rack, I'll keep my original design, but in the further rack or racks I'll switch to EuroRack.
In the last few years I was mainly working with Kubernetes. For this I previously built a K3S cluster from 5 Pine A64 SBCs. It broke down (dead SD cards), but I intend to rebuild it.
I thought, it would be a great idea to put these units into the modular front panel. Designed a holder for it.



Didn't print it when the design was ready as my printer had issues, later I didn't find time for it.

To be honest, I done not too much in my electronics project during the summer. The PCBWay asked, if I have problems - absolutely not - and suggested why I don't try out their 3D printing and CNC machining capability.

I was thinking this is a perfect opportunity for this. Made a quotation to this in PETG and some small part in resin. I can tell you, I was shocked. Mainly in the resin prices.
If the things I'm trying to print with a resin printer coming on these prices, absolutely nothing justify keeping my resin printer in the future.
Now the quotation is on. I'll write about the experience and my further way in 3D printing when the printed parts arrive into my hands for inspection.

2022. június 6., hétfő

CNC Router Reborn 3.

I'm just able to move forward with this project just only small steps.
As I fitted the 600VA power supply for the spindle into a two unit high drive bay, I realized that it has a fan at the front. I didn't want to cover it with the regular PC plastic front panels to allow the air flowing.
So I designed a proper grill for the front, what match the PC front design.


Printed and assembled to the PSU:


I also worked on the spindle controller. It is ready made controller bought from the Aliexpress. It has controls and display, but needed some mounting hardware to fit into the PC enclosure. It is also 3D printed:


Assembled:


Wired together, the whole set. Measured the PSU. The LED display was a bit flashy from the first moment, finally completely stopped to work. As I not really have too much time to troubleshoot a such cheap, undocumented electronics (not worth the effort), so I ordered a few different kind of controller for a few bucks. This project put aside until those arrive.

2022. május 7., szombat

Octoprint in docker

[Updated: 2024.03.10]

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

[Update]
After installing everything when I tried to use Octoprint, this came up at upload printable gcode:
The reason: the proxy is not configured for long HTTP requests. Means the start command for the proxy above need to be adjusted a bit.
You will need the following:

mkdir -p /data/nginx-proxy
chmod -R 777 /data
echo "client_max_body_size 25m;" > /data/nginx-proxy/custom.conf
docker run -d -p 80:80 --restart=always --name=proxy -v /var/run/docker.sock:/tmp/docker.sock:ro -v /data/nginx-proxy/custom.conf:/etc/nginx/conf.d/custom.conf:ro jwilder/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

For security it is not the best choice, but as right now we don't know the user id of the Portainer  (Octoprint) container, so I gave access for those data folders for everybody inside the computer

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

If you connect more than one USB-CDC device (Serial over USB, most of the 3D printers fell into this category), you are in trouble. In Linux the devices are not stick to the device file. While you run a single Octoprint on a Raspberry Pi this is not a problem, while you only connect one printer, always get the same device file. In our case it is not evident. This is why I use a "trick" here. Create an alias (soft link) for the device. Giving a name to it, based on the USB Vendor Id (VID), Product ID (PID), and the serial number. Here I should give a small note. The CH340 series Chinese USB Serial converter chip frequently used in the 3D printers, can't be differentiated from each other, as it has no serial number. So if you have more than one 3D printers based on it, you still in trouble.
First connect your printer to the PC, and run the following command:

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:


Here come the regular Octoprint setup (I don't want to discuss it here because you can find this in more appropriate places over the internet).
And the result:

If you want to use more than one printers, you should setup the folder (for the octoprint instance), the sticky device file and the Octoprint docker container for each.



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:

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...


Yes, I used a 12MHz crystal instead of 16MHz. This means, everything working correctly, except the serial communication. When I used 115200 on the arduino side and 86400 on the terminal side, the communication eventually started to work normally.
I didn't wanted to keep it this way, so changed:


The complete electronics, in it's place with the motor and the cable management arm


The power breakout box


Now only a few things left to do:

  • 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
Working on my desk:


Project finished, mounted into it's final place:


The design and the code reside here:

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:


Assembled:


It will be glued to the Hi-Fi rack with double sided tape:


In place:




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

This will be a long association chain. Just follow!
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. május 31., csütörtök

Titan Struggling

I'm just quietly asking. It is allowed to look like this after a few month light usage, or after a stacked print? E3D Titan Extruder - original UK version ordered from E3D-Online.


2018. május 12., szombat

Leather instrumentation microscope

This project came from my wife.
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
Software:
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
Later:
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

Its been a while I didn't write anything.
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)

In the last year I was thinking about a 3D printer in my office. Even I was bringing my Geeetech printer there for a week.
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.



It took me just a few hours to assemble. Started on Friday late afternoon, finished on Sunday, but mainly I did other things during the weekend. I think the net build time was around 6-7 hours.
Here is my experience with the whole thing. Mostly random thougths:
  • 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


And the first test print:




2018. január 7., vasárnap

VESA Monitor Stand

I've a Philips monitor in my lab. Unfortunately together with it's original stand it is to high. This means I can't really access the shelve behind it. I needed to place it lower, but it's original stand doesn't allow it. Yes I know, that I can buy a monitor with adjustable stand, but it cost more, and actually I've this monitor on-hand.
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