tool_access_controllers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tool_access_controllers [2019-03-01 13:14] – tim | tool_access_controllers [2024-11-04 22:10] (current) – [Enclosure and Wiring] tim | ||
---|---|---|---|
Line 13: | Line 13: | ||
Current: | Current: | ||
- | * Clarke Bandsaw | ||
* Startrite Bandsaw | * Startrite Bandsaw | ||
* Bantam Lathe | * Bantam Lathe | ||
* EMCO Lathe | * EMCO Lathe | ||
+ | * Small Laser Cutter | ||
* Big Laser Cutter | * Big Laser Cutter | ||
* Mitre Saw | * Mitre Saw | ||
Line 22: | Line 22: | ||
* Sander | * Sander | ||
* Welder | * Welder | ||
+ | * CNC Router | ||
+ | * Juki Sewing Machine | ||
Planned: | Planned: | ||
- | * Small Laser Cutter | ||
- | * CNC Router | ||
* Bench grinder(s) | * Bench grinder(s) | ||
* Drill press(es) | * Drill press(es) | ||
Line 47: | Line 47: | ||
| D2 | ESD protection diode | 1 | Farnell 2317508 (ESD5Z3.3T1G) | | | D2 | ESD protection diode | 1 | Farnell 2317508 (ESD5Z3.3T1G) | | ||
| Q1, Q2 | N-channel MOSFET SOT-23 | 2 | Farnell 2069541 | | | Q1, Q2 | N-channel MOSFET SOT-23 | 2 | Farnell 2069541 | | ||
- | | C3 | 10uF capacitor | + | | C3 | 10uF 0805 10V+ | 1 | | |
| R1, R6, R7, R13 | 10K 0603 | 3 | | | | R1, R6, R7, R13 | 10K 0603 | 3 | | | ||
| R3, R4 | n/a | | burden resistor, easier to fit one externally | | | R3, R4 | n/a | | burden resistor, easier to fit one externally | | ||
Line 64: | Line 64: | ||
| 20x4 LCD module with I2C backpack | by convention we use black text on a yellow backlight, which is more readable than white on blue | | | 20x4 LCD module with I2C backpack | by convention we use black text on a yellow backlight, which is more readable than white on blue | | ||
| [[https:// | | [[https:// | ||
- | | Two push buttons | CPC SW03314 | | + | | Two push buttons | CPC SW03314, but others can be used | |
| Current transformer | [[https:// | | Current transformer | [[https:// | ||
Line 71: | Line 71: | ||
| 5V 1A power supply | 240V AC-DC, 24V DC-DC from a VFD or 5V from an existing PSU | | | 5V 1A power supply | 240V AC-DC, 24V DC-DC from a VFD or 5V from an existing PSU | | ||
| AC contactor or no-volt switch | | | | AC contactor or no-volt switch | | | ||
+ | | Class X2 suppression capacitor | 0.1uF or 0.22uF, if contactor or motors cause interference | | ||
===== Enclosure and Wiring ===== | ===== Enclosure and Wiring ===== | ||
- | All of our current tool controllers use the same design, an [[https:// | + | All of our current tool controllers use the same design, an IP65 ABS enclosure from RadioWorld on eBay. This no longer available so new controllers will require a different case and a modified mounting frame. |
- | The PCB, LCD and NFC modules are mounted on a laser-cut acrylic frame using nylon screws and spacers. Push buttons are panel-mounted to the front of the enclosure. | + | The PCB, LCD and NFC modules are mounted on a laser-cut acrylic frame using nylon screws and spacers. The front frame is cut from 3mm clear acrylic, and the supports from 2mm clear acrylic. Push buttons are panel-mounted to the front of the enclosure. |
{{ : | {{ : | ||
Line 93: | Line 94: | ||
More complex tools may have their own control systems (remote start/stop, VFD motor controllers, | More complex tools may have their own control systems (remote start/stop, VFD motor controllers, | ||
+ | ==== Noise suppression ==== | ||
+ | |||
+ | Some motors and contactors will create electrical noise, causing the microcontroller to crash or reset. If this happens the noise should be suppressed at source. A 0.1uF or 0.22uF class X2 capacitor (fitted across live and neutral close to the source) will often resolve the issue. | ||
==== Safety Rules ==== | ==== Safety Rules ==== | ||
Line 98: | Line 102: | ||
* The tool controller must not cause the device to start any motor or heavy machinery (there must be a separate start button with a no-volt reset). | * The tool controller must not cause the device to start any motor or heavy machinery (there must be a separate start button with a no-volt reset). | ||
- | ===== Software | + | ===== Assembly Process |
- | https://gogs.ehlab.uk/tim/ss2 | + | - Assemble the PCB (see earlier section). |
+ | - Solder wires to two push buttons and twist the wires for tidiness. **WHAT LENGTH?** | ||
+ | - Solder five jumper wires to a PN532 module and use hot glue to support the joints. The wires will be connected to VCC, SDA, SCL, GND and the RSTPDN (reset) pin. At the other end the female connectors should be removed from their plastic housing and re-inserted into a 5-way housing. **WHAT LENGTH?** Adjust dip switches to I2C mode. | ||
+ | - Laser-cut a front-frame (3mm clear acrylic) and two support pieces (2mm clear acrylic). | ||
+ | - Place the frame inside the enclosure. Use it to mark the drill centres for the push buttons. | ||
+ | - Double-check that the push buttons are on a straight line between the screw holes of the enclosure and that the holes will be symmetric. | ||
+ | - Drill the push button holes and use a hole reamer to get the exact size (the buttons will be inconveniently in-between common drill sizes). | ||
+ | - Drill holes for cable glands at the lower edge of the enclosure, or for non-glanded holes in the back of the enclosure (depending on the intended layout). | ||
+ | - Fit the acrylic supports in slots 1 (top of the enclosure) and 3. Use a piece of foam adhesive tape at each end to keep the supports in place and to apply upward pressure on the front-frame when it is installed later. | ||
+ | - Trim the header pins from an LCD module to provide enough clearance. | ||
+ | - Fit the LCD module to the front-frame using nylon screws (4x M3 10mm nylon screw, 8x nylon nut). The LCD should be mounted underneath the frame. The stack should be: screw head, front-frame, | ||
+ | - Fit the PCB to the front frame with nylon screws and hex spacers. The PCB should be mounted underneath the frame. The stack should be: screw head, front-frame, | ||
+ | - Fit the PN532 module to the front-frame. The module should be mounted **above** the frame. The stack should be: screw head, PN532 module, front-frame, | ||
+ | - Install the push buttons and place the assembled front-frame into the enclosure lid. | ||
+ | - Connect the PN532 and LCD modules. | ||
+ | - Install and test the firmware. | ||
+ | - Prepare mains wiring. For a plug-in configuration, | ||
- | Two generations of firmware and backend-server are in use at the moment: | + | ===== Software ===== |
- | + | ||
- | Legacy/ | + | |
- | * uses UDP networking with a simple retry mechanism for reliability | + | |
- | New: | + | [[https:// |
- | * uses TCP networking | + | [[https:// |
===== Bugs and Improvements ===== | ===== Bugs and Improvements ===== |
tool_access_controllers.1551446054.txt.gz · Last modified: 2019-03-01 13:14 by tim