Hello Guest it is May 07, 2024, 09:58:14 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - compewter_numerical

Pages: 1 2 3 »
1
Mach4 General Discussion / ESS MB3 3d printed Din Rail Mounts
« on: August 02, 2022, 06:02:56 AM »
here are 3d printed din rail mounts for MB3 with ESS

2
Mach4 General Discussion / diiy pendant
« on: April 23, 2021, 04:20:18 AM »
this is a project i started so i could try to learn 3d modelling and pcb manufacture

I still know very little about either

here is a diy pendant you can make at home

would be cool to see the modifications people could do. I'm not sure what to do with the 2 potentiometers

the 3d print files and pcb gerber/bom/pnp files are in the repo. i have 4 extra working pcb's if anyone wants to try this i can probably send them to you.

not sure if i'm going to continue development with this but seems to work well

easy to install in mach 4 with self installer .exe program. includes a mach 4 wizard for pendant io status

the installer program will overwrite inputs 51-63 in the mach4 input config. it will also overwrite MPG #11 in the mach4 config

use the latest release of mach 4 or else

two separate firmwares (bluetooth or modbus)
bluetooth setup:
https://github.com/kethort/esp32-bluetooth-cnc-mpg-mach4

modbus setup:
https://github.com/kethort/esp32-cnc-mpg-handwheel-conversion-mach4

-------------------------------------------------------------------------------------------------

demo video:
https://www.youtube.com/watch?v=sGhttK0reT0

assembly video:
https://www.youtube.com/watch?v=5aFO2rzkZ1c

-------------------------------------------------------------------------------------------------
parts list:
https://www.amazon.com/HiLetgo-240X320-Resolution-Display-ILI9341/dp/B073R7BH1B/ref=sr_1_3?dchild=1&keywords=ili9341&qid=1619149694&sr=8-3

https://www.amazon.com/Yosoo-Health-Gear-Electronic-Generator/dp/B08KZQ3L72/ref=sr_1_1?dchild=1&keywords=manual+pulse+generator&qid=1619149756&sr=8-1

https://www.amazon.com/TWTADE-Amplifier-Potentiometers-100K%EF%BC%88Each-RK097N-6-5k-100k/dp/B07XRBN51S/ref=sr_1_1_sspa?crid=3CSOF8LQZ5VVU&dchild=1&keywords=10k%2Bpotentiometer&qid=1619149779&sprefix=10k%2Bpote%2Caps%2C231&sr=8-1-spons&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUFOM0JTRlQwVFpUTTImZW5jcnlwdGVkSWQ9QTA0NzQ0NDQzVlJFVjdLOUZZVkNIJmVuY3J5cHRlZEFkSWQ9QTA0NzY1NDAxNkJCOE1FVkxLQTRBJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ&th=1

https://www.amazon.com/Momentary-Tactile-Through-Breadboard-Friendly/dp/B07WF76VHT/ref=sr_1_1_sspa?dchild=1&keywords=breadboard+tact&qid=1619149817&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzQjdKVjBDRDZYT1NHJmVuY3J5cHRlZElkPUEwODI0ODQ3M0RKOVg1QzVXVkdJNyZlbmNyeXB0ZWRBZElkPUEwNzA4Mjk2MlNKVENON1pUSE1TNSZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU=

https://www.amazon.com/Highfine-Wireless-Extension-Bulkhead-Repeater/dp/B01GMBUS8O/ref=sr_1_5?dchild=1&keywords=u.fl+antenna&qid=1619149838&sr=8-5

https://www.amazon.com/HiLetgo-SS-12D00-Toggle-Switch-Vertical/dp/B07RTJDW27/ref=sr_1_2?dchild=1&keywords=1p2t&qid=1619149872&sr=8-2

https://www.amazon.com/DIYMAG-Refrigerator-Stainless-Science%EF%BC%8CRefrigerator-Conditioner/dp/B08L7KFL6Z/ref=sr_1_1_sspa?dchild=1&keywords=disc+magnet&qid=1619149888&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyV1M2TURMSVZQMk1FJmVuY3J5cHRlZElkPUExMDM0NzcwNjlTUk5WNUQ0NVhQJmVuY3J5cHRlZEFkSWQ9QTAzMzExOTUzUjJBTUM4RlBPMDlaJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==

https://www.amazon.com/YDL-2500mAh-battery-Rechargeable-Connector/dp/B07BTY599F/ref=sr_1_2?dchild=1&keywords=2000mah+l-ion&qid=1619149913&sr=8-2

https://www.amazon.com/HiLetgo-Lithium-Battery-Charging-Protect/dp/B00LTQU2RK/ref=sr_1_1_sspa?dchild=1&keywords=tp4056&qid=1619149938&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExMTBLQ0MyU1AySzQmZW5jcnlwdGVkSWQ9QTAxODYyOTQyUVE4TVE4MTVTMUVCJmVuY3J5cHRlZEFkSWQ9QTA5MDI0ODM2UVEzRU1KQldQMFImd2lkZ2V0TmFtZT1zcF9hdGYmYWN0aW9uPWNsaWNrUmVkaXJlY3QmZG9Ob3RMb2dDbGljaz10cnVl

3
Here's a document with examples of how to use basic read/write registers and coils via Modbus in Mach4 using very cheap and simple hardware. I made this for a class I am teaching and thought it might be helpful to others.

It includes the following examples:
1. Activate Output Example (Write Coil)
2. Monitor Inputs Example (Read Coils)
3. Read Register Example (Read Holding Registers 16bit)
4. Write Single Register Example (Write Single Register 16bit)
5. Write a Decimal Value using Two Registers (Write Multiple Registers 16bit)
6. LUA Mach4 Read/Write Access of Modbus Holding Registers

4
Mach4 General Discussion / Mouse MPG Module
« on: January 15, 2021, 02:24:58 AM »
I am expiremtning with the mouse mpg I found here https://www.youtube.com/watch?v=MRyaRQwhYWk.

I was wondering if there is any way to listen for the scroll wheel without having to enter the window or a lua panel with the mouse?

I tried making a lua panel the size of the entire screen and then selecting the hidden check box in the screen editor. It worked but then I couldn't press any of the buttons on screen.

5
Mach4 General Discussion / "update" to counts per unit calculator
« on: October 22, 2020, 12:54:40 AM »
hope i don't tread on any toes with this but just delete this post if so.

I needed a quicker way to update counts per units so i created this. It grabs the current counts depending on the radio button axis selected. it seems to work just like the one included in the default Mach4 installation except it only calcs to 4 units of precision.

The update counts button is experimental. it looks like it only updates the counts on the fly and not across restarts and it won't update the units when you re-select the radio button for that axis. so once you get your counts locked in, just remember to set that value in the Mach config for that motor.

Just extract and put the attached file in the wizards directory to use it

i'll was probably going to put zero button in there too for the axis selected and change the counts per in the text box for the axis when press set counts


 

6
Promote and discuss your product / Mach4 Modbus MPG (Wifi or Ethernet)
« on: October 09, 2020, 02:28:02 AM »
Original post moving with update:

https://www.machsupport.com/forum/index.php?topic=43332.msg280091#msg280091

Parts List (non-affiliate [don't need the w5500 if only using WiFi]):
Code: [Select]
https://www.amazon.com/gp/product/B01E6VTZHC/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B07BTRLKPT/ref=ppx_yo_dt_b_asin_title_o04_s04?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B082XJXQS6/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B07XG323G8/ref=ppx_yo_dt_b_asin_title_o03_s01?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B07T4YHP7Q/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B07Q576VWZ/ref=ppx_yo_dt_b_asin_title_o04_s03?ie=UTF8&psc=1

I chose the ESP32 for this project because of all the already available libraries and it's 32-bit processor
so it can read the encoder counts really quickly.

The switch on for battery power is now the big red button on the MPG (normally an Estop?).

For wiring I just desoldered the wires that were already in the MPG and did the following:
Code: [Select]
battery -> TP4056 Charger Module -> XL6009 Boost Convert (3.3 to 5V) -> MPG Estop switch -> ESP32 VIN/GND

(The LED on the MPG PCB is connected to the 3.3v and GND terminals on the ESP32)

MPG PCB:
    ESP32 GND    -> COM
    ESP32 Pin 2  -> A+
    ESP32 Pin 4  -> B+
    ESP32 Pin 13 -> X Axis
    ESP32 Pin 14 -> Y Axis
    ESP32 Pin 27 -> Z Axis
    ESP32 Pin 25 -> MPG Enable Switch
    ESP32 Pin 32 -> A Axis
    ESP32 Pin 35 -> B Axis (8k ohm pullup to 3.3v)
    ESP32 Pin 34 -> C Axis (8k ohm pullup to 3.3v)
    ESP32 Pin 15 -> Inc 1
    ESP32 Pin 21 -> Inc 2
    ESP32 Pin 22 -> Inc 3

(only if you want ethernet instead of just WiFi)
W5500 Lite:
    ESP32 Pin 23 -> MOSI
    ESP32 Pin 19 -> MISO
    ESP32 Pin 18 -> SCLK
    ESP32 Pin 5  -> CS
    ESP32 Pin 26 -> RST


source code for WiFi:
Code: [Select]
https://github.com/kethort/Mach4ESP32ModbusMPGHandwheel
Uncomment #define STATIC_IP to use an automatic configuration.

The rest of the instructions for the firmware are on the git page.

The ModbusMPG.lua file goes in the Mach4 Modules directory

The Ethernet Modbus connection to the ESP32 requires modification of Server.h in the Arduino libraries so I'm not going to include the source. I'll attach the sketch and the modified Server.h file but no instructions. It's easy if you follow the error in the compilation in the Arduino IDE.

7
Mach4 General Discussion / Use motor to bend a wire...help or suggestions
« on: September 08, 2020, 11:04:45 PM »
Hello,

I have a motor that spins freely 360 degrees, it's not geared and it is not moving on an axis it just spins freely.

At the end of the motor is a tube to hold a wire (the tube can catch and release the wire). We are only making between 30-60 degree bends. The motor has a home sensor (detects a metal pin when the shaft reaches the sensor).

My question is, what is the best way (or configuration in Mach4) to command the axis or orient it precisely.

The way we want it to work is (picture for reference):
    1. all axes are homed initially on startup
    2. the bending motor moves from home to a position where the wire can be fed in
    3. the bending motor moves to bend the wire
    4. the wire is released from the tube
    5. the bending motor moves back to accept a new wire

We will be programming it all into an MScript and don't need any help on the software side, just suggestions on how to use the motor in Mach4.

Should we map the motors as rotary axes? How do you calibrate the steps per unit on a motor that is not connected to a moving part? In other words, how do you know the actual position moved?

8
Mach4 General Discussion / Mach4 Arduino Wireless MPG via Modbus TCP
« on: July 05, 2020, 10:54:38 AM »
Here is a demo of a wireless MPG concept using the Modbus plugin and an ESP32 Arduino-like device.

The source code is in the description of the video

https://www.youtube.com/watch?v=AQGv1RTwftI

9
Here is an example of an Arduino connecting to a wxServer in Mach4 to send data to a register, read in from an ADC.

The profile and arduino sketch are attached.

Code: [Select]
https://youtu.be/KPRF2hKFgYE
wxServer/Client examples:

Code: [Select]
https://github.com/pkulchenko/wxlua/blob/master/wxLua/samples/server.wx.lua
https://github.com/pkulchenko/wxlua/blob/master/wxLua/samples/client.wx.lua

10
Mach4 General Discussion / Passing Data between Embedded Lua Panels
« on: June 17, 2020, 10:44:38 PM »
This is an example of how to pass data between on screen Lua panels.

The wxForms.lua goes in the Modules directory.

The second half of the video shows a more advanced implementation just to demonstrate what is possible.

Code: [Select]
https://youtu.be/QFAhBtLdcJU



Pages: 1 2 3 »