# ROS and Raspberrypi Camera V2

**URL:** <https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885>\
**Category:** Jetson Nano\
**Tags:** ros, camera\
**Created:** [January 14, 2021, 1:56am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885 "2021-01-14T01:56:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatih.ozkan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fatih.ozkan/32/16341_2.png) [@fatih.ozkan](https://forums.developer.nvidia.com/u/fatih.ozkan)\
**Post date:** [January 14, 2021, 1:56am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/1 "2021-01-14T01:56:39Z")

</div>

Dear Support,

I am trying to learn Autonomous Cars… I am totally new to these things I am trying to do my self driving rc car(1/10 scale). Like Donkeycar.  
But i want to realize it with ROS.  
I got rpi camera V2. I searched internet and just find that i can use rpi camera with ros kinetic. Are there any way to rpi camera with Jetson Nano on ROS. Cause as i can learned i can only install ros melodic to jetson nano.  
My questions are:

1. Can i use ros kinetic with jetson nano
2. Can i use rpi cam with ros melodic
3. There is a node for rpi camera like i said (in ros Kinetic) can i use this node in ros melodic

For me it’s urgent. I would be grateful for any help.  
Can you help me.  
Thanks.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [January 14, 2021, 5:50am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/3 "2021-01-14T05:50:48Z")

</div>

Have a check with below link.

> **[GitHub - dusty-nv/jetbot\_ros: ROS nodes and Gazebo model for NVIDIA JetBot with...](https://github.com/dusty-nv/jetbot_ros)**
>
> ROS nodes and Gazebo model for NVIDIA JetBot with Jetson Nano

---

<div class="post-metadata">

**Author:** ![fatih.ozkan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fatih.ozkan/32/16341_2.png) [@fatih.ozkan](https://forums.developer.nvidia.com/u/fatih.ozkan)\
**Post date:** [January 14, 2021, 12:38pm UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/4 "2021-01-14T12:38:32Z")

</div>

Thanks ShaneCCC.

I checked the link i followed the instructions. And install them except Adafruit MotorHAT.  
Firstly i couldnt install Adafruit Motorhat when i try " pip install Adafruit-MotorHAT"  
This error comes up:

> ```
> > Collecting Adafruit-MotorHAT
> > Using cached https://files.pythonhosted.org/packages/f3/4a/550e347249b21ad82d0dd1de7f6d7af8e5b06adfe2226fd1965f6cfa80aa/Adafruit_MotorHAT-1.4.0-py2-none-any.whl
> > Collecting Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT)
> > Could not find a version that satisfies the requirement Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT) (from versions: )
> > No matching distribution found for Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT)
> 
> ```

Secondly i couldnt find much informations about Adafruit MotorHAT. I am trying to use PCA9685. Is it capable to use with these packages?

Thirdly I tried some things for launching rpi cam with jetbot\_ros node and also ros\_deep\_learning nodes but couldnt find or stucked. Can you help me about it?

Thanks.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [January 15, 2021, 5:09am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/5 "2021-01-15T05:09:39Z")

</div>

Did you verify the PI camera working by nvgstcapture or any APP first?

---

<div class="post-metadata">

**Author:** ![MtHiker](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mthiker/32/49076_2.png) [@MtHiker](https://forums.developer.nvidia.com/u/MtHiker)\
**Post date:** [January 15, 2021, 5:33am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/7 "2021-01-15T05:33:51Z")

</div>

As Jetbot uses Adafruit’s motor drive, need “pip install Adafruit-MotorHAT”.  
For PCA9685, you need other one.

---

<div class="post-metadata">

**Author:** ![fatih.ozkan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fatih.ozkan/32/16341_2.png) [@fatih.ozkan](https://forums.developer.nvidia.com/u/fatih.ozkan)\
**Post date:** [January 15, 2021, 10:08am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/8 "2021-01-15T10:08:20Z")

</div>

![image](https://global.discourse-cdn.com/nvidia/original/3X/f/7/f71944e9c0b37ec8454a8741186a0175f3e4649a.jpeg)

I am able to use camera with jetbot\_camera node. Appreciate that :D

But now i am confused about how can i use my motors. I think i can’t use all package(jetbot\_ros) with my rc car. It is not capable with it. At least i am using PCA9685.

Now what should i do now? Finding a PCA9685 ROS node and using it with jetbot\_camera node . Am i right?

---

<div class="post-metadata">

**Author:** ![fatih.ozkan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fatih.ozkan/32/16341_2.png) [@fatih.ozkan](https://forums.developer.nvidia.com/u/fatih.ozkan)\
**Post date:** [January 15, 2021, 10:13am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/9 "2021-01-15T10:13:27Z")

</div>

Thank You @MtHiker .

Actually i didn’t understand driver thing exactly. Because i am using ROS and it’s like an environnement so if i find a node or package for PCA9685 isn’t it enough to use? Do I still need to download the driver?

---

<div class="post-metadata">

**Author:** ![Dingo\_aus](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dingo_aus/32/51108_2.png) [@Dingo\_aus](https://forums.developer.nvidia.com/u/Dingo_aus)\
**Post date:** [January 16, 2021, 11:58am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/10 "2021-01-16T11:58:14Z")

</div>

> [@fatih.ozkan](#):
>
> PCA9685

There are two examples of Jetson Nano controlling wheeled robots. If you are using a PCA9685 PWM to drive an H-Bridge, then look at the JetBot example. If you are using PCA9685 to generate RC Servo contol signals, then have a look at the Jetracer example. I suspect that since you mentioned DonkeyCar, Jetracer might be your best bet.

Also the help you are likely to seek now is probably more ROS related than Nano related so if might be helpful to search ROS information sources as well (e.g. [https://discourse.ros.org/](https://discourse.ros.org/))

---

<div class="post-metadata">

**Author:** ![fatih.ozkan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fatih.ozkan/32/16341_2.png) [@fatih.ozkan](https://forums.developer.nvidia.com/u/fatih.ozkan)\
**Post date:** [January 19, 2021, 8:17pm UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/11 "2021-01-19T20:17:18Z")

</div>

Thank you @Dingo_aus. I handled my problems with another PCA9685 driver. I will do more search about JetRacer later.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 15, 2021, 6:53am UTC](https://forums.developer.nvidia.com/t/ros-and-raspberrypi-camera-v2/165885/13 "2021-10-15T06:53:42Z")

</div>

Closed on October 15, 2021, 6:53am UTC


