Hit
the google drive link requires an invutation
but for those interested ,
the project was a python2 suite
and so is complex to use with a recent linuxcnc
today is -6aug2024 and
i had looked into the project
as i was wiriting a way to use arduino
ide compatible bpards for extra io
extra io is not the central use of hal2arduino/emc2arduino
so i am bot investigating firther
but
for those interested
here are notes and file
for a python3 version-
notes below vvv
Hal2Aeduino-notes.txt
06aug2024
Tom Powderly tjtr33
i was working on arduino io subsystem
for emc
( i am dictating this so it has lees typos than i genetrate
I came across Hal2Arduino/EMC2Aeduinoi thought it was a
similar solution that would allow boards compatible with the
arduino ide to be used with linuxcnc
well it does do that
but
does not enable all the io possible...
ppre-reqs
The pcb must hacve serial communications,
usb is hanbdies
tBoard must use the prescrobed protocl
( simpler than jepler's arduuino prorocol)
To discover what Hal2Aeduino could do,
i rewrote the main script for python3
(it was py2 and lib call and prints and range(,,,)
re different)( each change is noted )
and I offer it untested to anyone interested
( the comp ran enough for me to see it was not my path
in general
there are a lot of messages that could be passedfrom
linuxcnc to the arduino board
these messages are likethe nml message...
and are not useful for my project
others may find them useful
it took me a long time to discover
what this system actually did
i suggest for anyone interested can,
study instruction.txt
&the top of the main python file
& the contents of the .ino file
Hal2Arduino it does not give access to all i/o pins
of the arduino ( DI DO AI AO PwmO as i refere to them)
Communicating those data is central to my project
So I stop working with Hal2Arduino
for anyone wanting to try it with python3
here is the up converted file.
note
the code to discover the active
serial ports
that are connected to active arduino type boards
is interesting in i think i will use it
that code makes a list of all active
serial ports
and sens a special message to whatever is connected
it's the connected board replies to the secret handshake
then it is added to a list of connected arduinos
arduinos here meaning a board compatible with the arduino id
basically meaning a board capable of cereal communications
i hope this could be of use choose some users
tomp tjtr33
NB rebane P3HAL2Arduino.tx to P3Hal2Arduino ( noi extent)
make it executable
place in your $PATH
(i put it in .usr.local.bin)
I adfjusted the .ha; for ythe new comp name
find remaining files at Kurt Jacxobson's github
github.com/KurtJacobson/HAL-2-Arduino