You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am working on a lego pen plotter. I have been trying to get it to run off an NXT, but I'm hitting a brick wall of not knowing NXC well enough (found a program but have had little luck getting to to work with my build, original build lacks too much detail or instruction to replicate) so I figured if I need to learn something Pybricks will be easier for me to learn (some minor foundation in python from a few years ago) and will be more useful of a skill to have vs learning NXC. I am however not seeing any way to solve a specific problem. The way I am envisioning this to work is on the hub is a simple program that receives instructions, mostly X,Y,Z coordinates and runs the motors to match the given coordinates. The data stream would ideally be coming from a computer, specifically I am thinking about using an old raspberry pi for this as I have some that aren't currently being used and they are small, power efficient, and I might setup some buttons and such via the GPIO to control the device. The problem I am seeing is that I can't figure out how to broadcast from a computer to the hub, the RPI has built-in bluetooth so I should be able to stream the data directly from the pi. I'm sure it is possible, as that is exactly how we upload the Pybricks OS and programs from a computer to the hub.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am working on a lego pen plotter. I have been trying to get it to run off an NXT, but I'm hitting a brick wall of not knowing NXC well enough (found a program but have had little luck getting to to work with my build, original build lacks too much detail or instruction to replicate) so I figured if I need to learn something Pybricks will be easier for me to learn (some minor foundation in python from a few years ago) and will be more useful of a skill to have vs learning NXC. I am however not seeing any way to solve a specific problem. The way I am envisioning this to work is on the hub is a simple program that receives instructions, mostly X,Y,Z coordinates and runs the motors to match the given coordinates. The data stream would ideally be coming from a computer, specifically I am thinking about using an old raspberry pi for this as I have some that aren't currently being used and they are small, power efficient, and I might setup some buttons and such via the GPIO to control the device. The problem I am seeing is that I can't figure out how to broadcast from a computer to the hub, the RPI has built-in bluetooth so I should be able to stream the data directly from the pi. I'm sure it is possible, as that is exactly how we upload the Pybricks OS and programs from a computer to the hub.
Disregard, I finally found this https://pybricks.com/projects/tutorials/wireless/hub-to-device/pc-communication/
Beta Was this translation helpful? Give feedback.
All reactions