I planned to put this in a separate thread. This is long, It’s mostly my raw project notes. I don’t see a good way to make it usefully shorter…
This applies to the RFID lockout controller hardware and software running on it.
=======
System
Needs to be supportable and maintainable in the long term
- common parts across deployment
- ability to stock small quantity of spares
- good documentation to limit need for personal corporate knowledge.
=======
Software
The authorization API seems to have some serious delays - most interlock authorizations are taking more than 30 seconds according to my informal measurements. This is also true of lookups on the kiosk in the common room. I haven’t tried the QR links, yet.
If API delay is insurmountable add code to cache x most recent auths,
expire after time (2 hours, 12, 24, configurable?)
Reaquire auth before timeout to prep for next request?
Current Python code is version 2, Convert code to python 3. Should not be a big job, don’t see too many feature collsions in the code.
Keep config on USB Mem or I2C/SPI flash and read that (to include)
location
io assignments
timeout period
lookup base URL
lookup backup URL?
use Sandisk Cruzer or Ultrafit on cord tied to chassis
or 2-4K byte SPI/I2C on config board.
Add version info to code and use it and config info in serial log
Use remote logserver? Does DMS already have one?
Add remote machine disable.
=======
Electronic Hardware
Piface and Piface2 board are no longer available and closed source. We don’t really need the unique features and specialized software driver this board requires. It looks like the base Pi GPIO is more than adequate for most use cases.
There are a number of features that probably belong in a design that will support wider application (touchscreen support, etc.) support with common interface connector SPI/HDMI Display Support (Active user, clock, job time remaining, elapsed time, timeout, authorization warnings.
Breakout connector with I2C, SPI, a few GPIO and 5V supply to support touch when paired with display.
Green indicator to 24 VAC Contactor drive Mallory FL1P-22NA-1-G24V (or whatever control relay drive) and a direct indication of state.
Maybe sonalert beep as well? - if so use existing I/O with OTS module.
Status light on box; red, yellow or RGB? Needs to readable in bright light and facing user - do we remote mount or bespoke location on box?
Add serial port connector (Cisco RJ45 pinout) from Pi serial port (connector and buffer cost should be minimal. Is this needed, will it be used? Would special serial cable based on OTS 3.3V USB serial IF be a better choice?
Have separate config board that holds all hardware configuration jumpers and a SPI/I2C flash ROM for local unit configuration. Allows main board swap without reconfig of SW or HW.
Use bulkhead connectors - Ethernet and dual USB - USB will need some retention mechanism - something to tywrap to. Might need USB on top and bottom of box.
Wifi only - Pi Zero W on top of box in 3D printed housing/radome
Should HV section be interlocked? Power to box would not be effected, so it this even useful?
Door interlock as anti-tamper? any history to indicate this is a valid need?
PoE - probably not. Why is it needed if we are already switching power? On board supply will accommodate 12 - 24 VDC in, so extra wire PoE already an option. If it’s a corner use case add a seperate 802.3af POE interface.
=======
Mechanical Hardware
Use Bud box and 8.5 " Square 0.125" AL base plate. Everything mounts to plate and removable as a unit
Seperate HV section as now with cover/door.
=======
Use Cases
Common questions WiFi or Wired Ethernet?
Touch display - if so why? Show username, queue, runtime, bill, time remaining
heavy machine - 220V 3 phase 40A contactor, or single phase as needed.
light machine - 110V single phase less than 10 A
display only? Why?
=======
Issues
Wire to HV section is rated at 300V - should really be 600V for 220V AC
now using CONSOLIDATED ELECT WIRE &CABLE 820-3 ORANGE: HOOK UP WIRE, 20AWG STR 10 X 30, 300V, PVC, Stranded and Topcoat Tinned Copper conductor per ASTB-33, TEMP -40C TO 105C
Piface relay ouputs underated for applicaiton. Being used at 24 VAC (so ~38 V Peak) Limited to 20V at 2 A DC. Relays are rated at 5A/250 VAC, board design limits rating. Not a crisis, but should be corrected.
Existing project Wiki Page: RFID Interlock - Dallas Makerspace
I’ll shut up for now.