ArduinoIO HAL component

More
3 years 6 months ago #269526 by dinodf
Replied by dinodf on topic ArduinoIO HAL component
Hi,
to have 12 outputs you have to edit the arduinoIO.ino and set all pins in the array pinOut (the name of the pin you wanna use as output), also set the init state of all pis in pinInitState and if the pin need to be inverted to have the correct state in pinOutInvert; this 3 array must have the same number of the element, 12 in your case; 
Then you have to edit the file arduinoIO.py and set nOutput = 12

I have tried and there is a problem :-( i try to fix it

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #269528 by dinodf
Replied by dinodf on topic ArduinoIO HAL component
I have fixed the BUG, thank you for the report, I am sorry for the long time to answer but I have not received the notification of your message :-(

Try the new file: github.com/DinoMesina/arduinoIO/blob/main/arduinoIO.py
Last edit: 3 years 6 months ago by dinodf.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #270429 by dinodf
Replied by dinodf on topic ArduinoIO HAL component
It's fixed the BUG?

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #281683 by dokwine
Replied by dokwine on topic ArduinoIO HAL component
Hi Dino,
I came across this and was considering giving it a try. I see that that the .py code stipulates <2.7, and I’m running 2.9 pre now (which I think is >Python 3). Would you expect it to work with 3, or do you plan to update?

thanks, Ron
Last edit: 3 years 1 month ago by dokwine.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #281741 by dinodf
Replied by dinodf on topic ArduinoIO HAL component
Hi,
there is no problems to use the code as is with python 3.x.y the __future__ statements is necessary only for use the print function in the newer format
I'm happy to know your feedback. I have draw a little PCB to control the spindle inverter with an Arduino NANO Every, if it's useful I can publish the schematic and the board.

Dino

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #281750 by dokwine
Replied by dokwine on topic ArduinoIO HAL component
Thanks for the reply. I think I’m about ready to try this out… need the remote IO’s for a new control panel. There will probably be some questions as some of this is new territory for me.
The following user(s) said Thank You: dinodf

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum