What i need to control a motor driver from an USB-device ?

Let's say i have my host + camera that takes all the decisions regarding torque for each wheel, and that host only has an USB 2.0 output to communicate the desired torque etc to the robots motors.

So. What is the missing/cheapest component that i need ?
It would be nice to have, to include gyro and BT/WIFI to communicate back to my host the position.
I've seen some simple two wheel robot platforms + motors, but i also need a motor driver, correct ?

Do i need to write a HID driver so that my arduino, for example, could interpret what i'm sending ?
From my understanding, arduino just needs to convert what i tell him via USB to some GPIO that are connected to the driver of the motor, correct ?

Scope of the project is a simple robot that just navigates around the room, avoiding obstacles.

Thanks,

Since this project is all in your mind and I cannot read minds, who knows what you need or need to do.
Paul

So you are seriously short on detail so far.

Start by explaining what the "host" is.

Why do you refer to USB, and then to Bluetooth or WiFi?

Do you actually know what HID is?

The motor driver will depend on what motors you have.

The host is a compute stick with an Atom CPU

is should be good enough for basic computations.

It doesn't have GPIOs output, but it has an additional USB port.
The robot chassis could be this: https://www.aliexpress.com/item/32633842302.html
The motors, from their descriptions could be used with L293D driver.

As far as i see, that driver is sold as a shield for Arduino UNO.
So, what i need it my Atom based compute stick talk to the Arduino UNO.

Question: what's the best way to do it ? Can be done via BT/WiFI ? I mean, regarding latency, and if is wise to control motors via PWM using WIFI. The robot is not performing brain surgery, is only roaming around the living room.

The host is a compute stick with an Atom CPU
Intel Developer Zone
is should be good enough for basic computations.

It doesn't have GPIOs output, but it has an additional USB port.

The compute stick appears to be a small windows computer. Is the compute stick running a program which can send data out a usb port?

What have you found using Google about connecting a compute stick to an arduino?

How is your situation any different from connecting a pc to an Arduino?

coiedulci:
The robot chassis could be this: https://www.aliexpress.com/item/32633842302.html

14 USD for that? Ridiculous.

The motors, from their descriptions could be used with L293D driver.

Please go get serious advice. That's an old, inefficient, bulky driver.

If that Atom is a USB host, it should be able to connect to the Arduino through the regular USB interface. Your Arduino (forget about the Uno, too bulky - go for a Nano instead) can then receive the commands through USB.

Don't be worried about latency in transmission. Windows itself will take care of introducing that.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.