11/30/2022 0 Comments Vex usb serial driver![]() ![]() In this case there is most definitely an OS and the hardware interface is restricted to the standard communication protocols: USB, RS232, ethernet, etc. More advanced robots might run a full microprocessor like a laptop.There is usually nothing like an OS here. As well as communication buses such as RS232, I2C, etc. Which typically have direct control over GPIO digital and analog pins. Simple robots might just have a bare-metal microcontroller.The "brains" of the robot: software, controller, firmware, etc. So I ask: how'd I do? Is my understanding of this process correct? Or is it grossly midled or off-base somehow? Thanks in advance for any steering or course correction! In that case I could write a device driver to expect listen and read for signals coming from, say, pins 9-14, and to send any values written to those pins (by the temp gauge) on to a memory buffer that my firmware could read them out of. And in the case of the temperature gauge, either the manufacturer would write and provide device drivers for the gauge's use on numerous/common OSes, or I would have to write my own device driver for the gauge myself. ![]() In the case of a USB camera, the USB drivers almost assuredly already exist for the OS, unless its a real-time OS that for whatever reason doesn't have USB drivers written for it. So both the camera and temperature gauge must have device drivers so that the firmware must talk to it. It is my understanding that the robot's firmware must use device drivers to read/write values over its I/O pins for talking with these sensors. Or perhaps the temperature gauge is sending real-time temp readings over a few wires to whatever those wires are connected to. So perhaps the camera is a USB camera that expects to send RGB video frames over the attached USB cable to whatever is listening at that USB port. It is my understanding that a sensor peripheral, such as a camera or a temperature gauge, will be built to either send its data over port (perhaps a serial port such as USB) or over individual wires that must be soldered/connected to the I/O pins of the controller running the robot's firmware/software. ![]() I am looking to just make sure I correctly understand the fundamentals for how robotic systems typically receive and process inputs from sensors. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |