Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code #6

Open
sahaj24 opened this issue Apr 15, 2023 · 1 comment
Open

code #6

sahaj24 opened this issue Apr 15, 2023 · 1 comment

Comments

@sahaj24
Copy link

sahaj24 commented Apr 15, 2023

I am writing to seek your guidance on how to upload the final bot code into a Raspberry Pi (RPI) and interface it with a motor shield. Could you kindly provide information on the specific motor shield that you recommend or are currently using, along with the pin connections required for proper operation? Furthermore, if you have any sample videos showcasing the process of uploading code to an RPI and interfacing with a motor shield, I would greatly appreciate it. Thank you for your assistance.

@dannystaple
Copy link
Collaborator

Hello,
Where you will be able to buy the specific shield recommended by the book depends on where you are living.
This is the hat in use:
https://vi.aliexpress.com/item/32536369104.html?spm=a2g0o.productlist.main.5.36fc15d3GBEFon&algo_pvid=66592531-7f3d-46ad-a042-b9bf25ee0c7c&algo_exp_id=66592531-7f3d-46ad-a042-b9bf25ee0c7c-2&pdp_npi=3%40dis%21GBP%2130.11%2130.11%21%21%21%21%21%40211bf14716815941243914485d077e%2159054166612%21sea%21UK%21108888535&curPageLogUid=JftL2yTN6NSQ

It has connections for stepper/dc motors, and servo motors, along with through pins for the Raspberry Pi, a slot for the camera cable, and is based around the PCA9865.

As for uploading the code, I recommend headless operation as shown in Chapter 4 (in the second edition book), using scp to send files to the Pi (with scp), and ssh to run terminal commands to launch the code. Use raspi-config to enable ssh, although you should now be able to enable that, along with wi-fi on the Pi during flashing the SD card with the current Raspberry Pi imager product in the settings menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants