New Arduino project with motor controller and Hall sensorfeasibility
After reading some documentation, I intend to build a prototype robot based onQuestion completely rewritten
- Arduino Mega (more space for program than Uno)
- a DC motor controller shield
- a Hall sensor (and a few magnets)
New to Arduino, I need more research to practically comprehend what to buy and what to do ; thus the questions below areTrying to assess if thean Arduino project is feasible, meaning without major obstacles, and any added advice is welcomefeasibility.
Program and behavior
The program will reside on the New to Arduino. However the robot behavior may be altered from time to time via USB commands.. but did a lot of controller programming (sent from a PC for instanceassembly).
Is the Arduino code able to read, Roboteq (aC)synchronously external "commands" and Phidgets (even a number is sufficientC++) sent via USB?
Hall sensor
The robot behavior will be affected - at, using various kinds of motors and sensors ; and reading the Arduino level - by the value given by the Hall sensordocumentation makes me feel confident interfacing and programming shouldn't be an issue.
However, before investing time (basically when the robot gets close to a magnetand some money). The reference says it needs 0.1 ms to read in the sensor valueproject, which is good enough. Couldn't find a plug&play Hall sensor:
How easy and reliable is itI thought it'd be better to connect a Hall sensor and read its value (via analogRead()
?)?.ask here if Arduino is the right choice, considering
- a non-latching Hall sensor is to be connected to Analog 0,
analogRead()
to return a [0,1023] value, used as a proximity sensor. This should be straight forward.
Other considerations Question →
- while the Arduino runs my program, and is still connected to the PC (USB), is it possible to synchronously or asynchronously send commands from the PC to the Arduino. I.e. can the Arduino poll if there is something coming from USB (synchronous), or is there a way for the PC via USB to have Arduino do something (asynchronously)?
The programming language seems a bit slow - 0.1 ms to read a value from a controllerThank you. Is there a faster way to run things on the Arduino?
New Arduino project with motor controller and Hall sensor
After reading some documentation, I intend to build a prototype robot based on
- Arduino Mega (more space for program than Uno)
- a DC motor controller shield
- a Hall sensor (and a few magnets)
New to Arduino, I need more research to practically comprehend what to buy and what to do ; thus the questions below are to assess if the project is feasible, meaning without major obstacles, and any added advice is welcome.
Program and behavior
The program will reside on the Arduino. However the robot behavior may be altered from time to time via USB commands (sent from a PC for instance).
Is the Arduino code able to read (a)synchronously external "commands" (even a number is sufficient) sent via USB?
Hall sensor
The robot behavior will be affected - at the Arduino level - by the value given by the Hall sensor (basically when the robot gets close to a magnet). The reference says it needs 0.1 ms to read the sensor value, which is good enough. Couldn't find a plug&play Hall sensor:
How easy and reliable is it to connect a Hall sensor and read its value (via analogRead()
?)?.
Other considerations
The programming language seems a bit slow - 0.1 ms to read a value from a controller. Is there a faster way to run things on the Arduino?
Arduino project feasibility
Question completely rewritten
Trying to assess an Arduino project feasibility. New to Arduino... but did a lot of controller programming (assembly), Roboteq (C) and Phidgets (C++) , using various kinds of motors and sensors ; and reading the Arduino documentation makes me feel confident interfacing and programming shouldn't be an issue.
However, before investing time (and some money) in the project, I thought it'd be better to ask here if Arduino is the right choice, considering
- a non-latching Hall sensor is to be connected to Analog 0,
analogRead()
to return a [0,1023] value, used as a proximity sensor. This should be straight forward.
Question →
- while the Arduino runs my program, and is still connected to the PC (USB), is it possible to synchronously or asynchronously send commands from the PC to the Arduino. I.e. can the Arduino poll if there is something coming from USB (synchronous), or is there a way for the PC via USB to have Arduino do something (asynchronously)?
Thank you.
Starting an New Arduino project with motor controller and Hall sensor
Starting an Arduino project
After reading some documentation, I intend to build a prototype robot based on
- Arduino Mega (more space for program than Uno)
- a DC motor controller shield
- a Hall sensor (and a few magnets)
New to Arduino, I need more research to practically comprehend what to buy and what to do ; thus the questions below are to assess if the project is feasible, meaning without major obstacles, and any added advice is welcome.
Program and behavior
The program will reside on the Arduino. However the robot behavior may be altered from time to time via USB commands (sent from a PC for instance).
Is the Arduino code able to read (a)synchronously external "commands" (even a number is sufficient) sent via USB?
Hall sensor
The robot behavior will be affected - at the Arduino level - by the value given by the Hall sensor (basically when the robot gets close to a magnet). The reference says it needs 0.1 ms to read the sensor value, which is good enough. Couldn't find a plug&play Hall sensor:
How easy and reliable is it to connect a Hall sensor and read its value (via analogRead()
?)?.
Other considerations
The programming language seems a bit slow - 0.1 ms to read a value from a controller. Is there a faster way to run things on the Arduino?