Input Devices
For my project, I might try a strumpad to at least emulate the playing of strings and or palm muting the strings
The step response board, might help me in learning the process of it all.
I took to redrawing Neil's txrx board with the ATTiny 45.
The Schematics of the Hello board.
The PCB layout of the Hello board.
After I redrew Niel's hello board I made the pad in eagle as well, using the polygon feature. Still quite new to this workflow, but still came out rather well
The TxRx pad.
I used Flatcam to create the gcode for the mill with the following settings:
Generating the trace of the Hello board.
For the cutout I used the following settings:
Generating the cutout of the Hello board.
For the TxRx pad, I used the same settings.
Generating the traces of the TxRx pad.
Generating the cutout of the TxRx pad.
For this process, I used candleCAM, which uses GRBL to communicate to the mill.
Candle is quite neat, as you can use the software to create a heightmap of the cu plate.
Generating the heightmap.
The heightmap can be used for all jobs, if you want, but I am using it just for this cu plate.
The same process for the pad.
Milling the TxRx pad using Candle software.
Milling the TxRx pad using Candle software.
After stuffing the board, I burnt the bootloader with my FabTinyISP and loaded up Neil's hello.txrx.45.c code
About to burn the bootloader
After loading up the C code, I proceeded to run the Python code, but it just crashed right away
Leave it up to me, to go looking too far for a solution, but I first thought it might not have loaded the C code correctly. I loaded the make file with Bash shell and tried again.
Loaded up the C code via makefile
The .py program was still crashing. So now I was getting the gist of it. Never assume it will work out of the box, always double check is the learning process.
I opened the .py file with the IDLE editor Python for Windows comes with and looked at the code.
It seemed I was running the code with Python 3 and not Python 2.
So I tried making the code compatible to Python 3 and found some invalid syntaxes ( of course Python 2 will run it just fine)
The invalid syntax
Yup missing parantheses for Py 3.
The next error I recieved is one stating that the TKinter module was none existent. Python 3 changed this from Tkinter to tkinter.
After swapping the T with t, the code seemed to run fine, but I was not receiving any GUI.
TKinter module missing? nope. Change TK to tk for Py 3
Program should run fine now.
In Windows, one cannot simply check USB connections with lsusb, no we have to enter : "wmic path CIM_LogicalDevice where "Description like 'USB Serial%'" get /value" in order to see the USB connections.
And as reference I used the python -m serial.tools.list_ports
Verifying if the serial was being read correctly
For some reason, I wanted to begin fresh, because I was testing the waters with Jetbrain's Pycharm, Anaconda etc.
Uninstalled all Python related sofware, cleaned Registery and any remaining folders and reinstalled Python 3 & with 2 for easy switching.
Installed the Pyserial and Pip tools.
For Py V3 just install Python for Windows
Define PythonV2 with py -2
For sanity's sake I edited the py program once again for Pyhton2 and still no luck, SO i decided to run the py program via the command line.
Lo and behold it worked ( after I defined the port ) with py -2 txrx.py