Friends, I have an Arduino Leonardo connected to my pc.
There is a temperature sensor on arduino sending a value through serial COM port to my computer.
What I´m planning to do is to create a graphical panel to show a pointer in a gauge according to my value obtained through serial.
The problem is:
I was trying to run a lua script that partially worked, i mean… I managed to open the COM port and according to the TX led of my arduino, the data was sent on the right interval, but I was unable to see any value on my terminal screen.
I´m using the following scritp:
print("Serial Test Iniciated\n")while 1 do serialin=io.open("COM4","r") print(serialin:read("\*a")) --should print values on screen serialin:close()end
But it´s not working… due to the fact that I´m unable to see the numbers or any data sent through COM port on my screen.
Can anyone tell me what I´m doing wrong?
Thank you!