04.1.25

NCComm – An RS232 device for CNC communication

So, I wanted to try my hand at making a communication device between a standalone device and the CNC, something I wanted. I achieved that. I wanted it made out of the most common parts an average person can easily buy off Aliexpress. You can buy one for like 200 bucks but it was fun to make nonetheless. Things you need for this build:

  • Arduino Mega 2560 or 1280 (I used this because it had enough IO, you could use a nano or a standard arduino but you’d wanna use a different keypad)
  • A membrane keypad (This one is a 4×5 keypad, so 9 IO are needed)
  • An SD card module that accepts 5v. (I used the large style, it is more hardy in an industrial environment.)
  • A 2004 LCD module with an I2C backpack (You can use a standard LCD without a backpack but you’ll want to change the way the output is used, I made a wrapper for that.)
  • An RS232 module. (This one should be with RTS and CTS, most CNC’s I know of need handshaking or just a CTS signal unless you tie the RTS CTS lines together on the cable)
  • Not necessary but I used a hat for the 2560 just to simplify the connections to the board to use standard headers.

Simple, straightforward. Here is the code I have thus far. It’s not too solid and handshaking isn;t working perfect but it works thus far.

Here: https://www.smackaay.com/wp-content/uploads/2025/04/NCComm.zip

Enjoy

Tags: , , , ,
| Posted in Electronics, Machining, Programming | Comments Off on NCComm – An RS232 device for CNC communication
07.10.24

A visit from an old friend, the boreGauge

A few years back we made a gauge for measuring large bores in hydraulic cylinders. Seems the company that bought it from us needed the software for it again. I had to dig through my old source code and see if I had a recent version, turns out I did. On this project I did the electronics, software and commissioned it.

An image of the BoreGauge

What the device does is, you place it in the bore, set your zeros and then measure the bore all the way down. This way you can see if there are any high spots, low spots or waviness. The software keeps track of the position as well and provides a csv file of the data and plots it on the screen.

This was a pretty fun project, I might redesign it and make a more substantial attempt at monetizing it later.

| Posted in Design, Electronics, Programming | Comments Off on A visit from an old friend, the boreGauge