ArduinoBASIC | A BASIC interpreter & environment for the Arduino
kandi X-RAY | ArduinoBASIC Summary
kandi X-RAY | ArduinoBASIC Summary
A complete BASIC interpreter for the Arduino, using a PS/2 keyboard, and SPI OLED screen. The BASIC supports almost all the usual features, with float and string variables, multi-dimensional arrays, FOR-NEXT, GOSUB-RETURN, etc. Saving and Loading from EEPROM is supported, as well as auto-running a program on power-up. You can also read and write from the analog and digital pins.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ArduinoBASIC
ArduinoBASIC Key Features
ArduinoBASIC Examples and Code Snippets
Community Discussions
Trending Discussions on ArduinoBASIC
QUESTION
I am currently making an Arduino move at certain positions depending on numbers I send to a text variables. I am using the Processing IDE and Arduino IDE.
The problem I am currently getting is that Arduino does not read the text file at all. Instead I have to manually type in numbers myself.
Just to summarize, I am trying to get a text file that only contains ONE number. Have the processing app read it and then have Arduino move at certain positions.
Here is what I have tried so far:
Delete the if statement with the switch
Changed myport ('0') to myport ('9') since that's where my wire is connected
Tried to use ByteRead on Arduino but it does nothing
Tried to convert ByteRead into an int instead of a byte
I have checked on Google, but no luck the only link I was able to find is this http://arduinobasics.blogspot.com/2012/05/reading-from-text-file-and-sending-to.html
...ANSWER
Answered 2017-Dec-12 at 02:54So, you connected Arduino on Serial port (or through USB-UART converter, doesn't metter), let say COM1, and then send to this port some data from one program (Processing IDE) and then trying to read from other program (Arduino IDE)?
It's impossible to connect multiple programs to the same COM port at the same time. You read byte from serial port (from Processing IDE, I guess), then you send texts by serial port back (trying to send it to Arduino IDE?).
You should do everything (write serial and read serial) in the same application on PC side (which should be connected first to COM port and will be holding it, preventing other programs to access it)
-OR-
you should use two serial ports connected to different COM ports (may be with two USB-UART converters).
Note that Arduino UNO, Nano etc. with ATmega328 chip have only one hardware serial. In this case you should use some software UART emulation to get to work second serial port.
The simpliest option is just to remove Serial.println
from Arduino code and make indication on Arduino by hardware (LEDs etc.) and don't connect Arduino IDE to the board during work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ArduinoBASIC
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page