pinoobs2
Posts: 2
Joined: Thu Nov 26, 2020 3:03 pm

Pico w/ Camera AND Touchscreen?

Tue Jun 15, 2021 9:23 pm

I am new to Pico and am curious whether it will be possible to connect both a touchscreen and a camera for a project that I am researching -- thank you!!!

User avatar
nick.mccloud
Posts: 1270
Joined: Sat Feb 04, 2012 4:18 pm

Re: Pico w/ Camera AND Touchscreen?

Wed Jun 16, 2021 7:50 pm

Yes, entirely possible.

All assuming of course that you've done something like that before with other small MCU's. Otherwise you've a steep learning curve (technically a shallow one) as many things like cameras & touch screens don't have off the shelf code you can just integrate in to a solution.
Pico/RP2040 ≠ Arduino
Pico = hot rod kit car, Arduino = hot rod kit car wrapped in cotton wool with buoyancy aids & parachute

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 17, 2021 3:09 am

Not a touch screen, but probably someone is working it it.
https://www.arducam.com/product/rp2040- ... ne-vision/
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

coltrane
Posts: 14
Joined: Fri May 15, 2020 6:44 am
Location: Portugal

Re: Pico w/ Camera AND Touchscreen?

Wed Jun 23, 2021 9:28 am

The RISCV people is also working on it.
It's almost impossible to find one of these:
https://www.seeedstudio.com/Sipeed-Long ... -4205.html

zontar
Posts: 210
Joined: Sun Mar 05, 2017 7:14 pm

Re: Pico w/ Camera AND Touchscreen?

Wed Jun 23, 2021 10:27 am

Hello,
you can find in this thread my solution which does not include touch but this should not be too different.. plenty of GPIO pins are left free

viewtopic.php?f=144&t=314309

So it should definitely be possible
Z

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 24, 2021 1:01 am

What performance difference is there between the Pico and these RISC-V 103's?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
HermannSW
Posts: 4265
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 24, 2021 1:30 am

When it comes to Pico and camera, then answer first why not use 5$ Pi0 plus 3$ 5MP v1 camera clone?
viewtopic.php?f=43&t=32605&p=1528527#p1528435
https://stamm-wilbrandt.de/2wheel_balancing_robot
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://github.com/Hermann-SW/raspiraw
https://stamm-wilbrandt.de/en/Raspberry_camera.html

zontar
Posts: 210
Joined: Sun Mar 05, 2017 7:14 pm

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 24, 2021 8:56 am

On my part, the answer is because I need to use a different camera connector, more robust and user friendly than the ZIF FPC one, in order to have the camera at least 1 metre from the main CPU and to allow the user to plug/unplug the cable without worrying, as in consumer electronics.

To do this I need to have the relevant CSI/GPIO pins exposed by the CPU, and the Zero (my obvious first idea) does not have these pins exposed.

In fact I have a working prototype built around the CM3+ and a proof of concept working with CM4, but.. it's too much processor power/software to just have a video feed from a camera to a display, that's why I was experimenting with something simpler.

Z

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 24, 2021 10:16 am

I have seen people use HDMI cables for Pi camera extensions.
Pico's can do HDMI output.
Can they do Pi camera input?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

zontar
Posts: 210
Joined: Sun Mar 05, 2017 7:14 pm

Re: Pico w/ Camera AND Touchscreen?

Thu Jun 24, 2021 10:32 am

Hi @Gavinmic42,
they use HDMI as a transport cable for signal of the camera to the Pi, it has nothing to do with the HDMI protocol, it's just a way to transport electrical and logical signals across a bigger distance.
In fact I now use a miniDP cable to bring signals from a Pi camera to a Raspberry Compute Module, for example,, and it has nothing to do with the DisplayPort protocol, it's just that the wires in the cable matches the signals that I need to carry.

Pico's CAN do HDMI output, I've seen quite a lot of proof of concepts around, since Pico can do VGA output, which is similar to DVI which in turn is compatible with HDMI (i.e. HDMI is backwards compatible to DVI).

See https://www.tomshardware.com/news/raspb ... o-dvi-sock

As per the camera input I expect the same can be true for the Pico. Camera input works (see ArduCAM for Pico) and those signals I guess could be easily routed through any kind of cable with a sufficient number of wires.

Z

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: Pico w/ Camera AND Touchscreen?

Fri Jun 25, 2021 12:45 am

Seen the SPI Pico Arducam, not the same as CSI/Mipi sensors.
1 to 4 wire SPI or parallel output sensors would be easier than the Pi Cameras

My reference to HDMI cable was re the highspeed Mipi/CSI cable pairs.
It is more complex to use a 5 -20MP sensor on a Pico.
Not sure why, unless you have spare Pi cameras just lying around ;)

Hmm, I wonder if Pico's could interface to old analog sensors?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

fdufnews
Posts: 344
Joined: Fri Oct 07, 2011 5:37 pm

Re: Pico w/ Camera AND Touchscreen?

Fri Jun 25, 2021 10:05 am

For analog video, you shall sample the signal at a few MHz and the ADC in the RP2040 is not that fast.
Or you can use an external video DAC managed with the PIO. But I think it is not the better solution. A Pi zero will give you better result without hasle.

User avatar
Gavinmc42
Posts: 5873
Joined: Wed Aug 28, 2013 3:31 am

Re: Pico w/ Camera AND Touchscreen?

Fri Jun 25, 2021 10:19 am

you can use an external video DAC managed with the PIO. But I think it is not the better solution. A Pi zero will give you better result without hasle.
Got a biunch of old analog cameras, had not thought about using them
An 8bit ADC n Pico or Zero?

Does the Pico have a comparator?
Black an white might be enough to detect movement.
Probably easy to use those SPI cameras.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “General”