Go to advanced search

by penguintutor
Fri Oct 29, 2021 10:32 am
Forum: SDK
Topic: Uploading to the external flash memory on RP2040 board
Replies: 14
Views: 606

Re: Uploading to the external flash memory on RP2040 board

I've now fixed the performance issues. I was reading from flash memory one character at a time and I was also sending that to the web browser one character at a time. So this added a lot of delay with the communication with the browser. I've now allocated a 1k string as a buffer in RAM. I copy from ...
by penguintutor
Thu Oct 28, 2021 8:51 pm
Forum: SDK
Topic: Uploading to the external flash memory on RP2040 board
Replies: 14
Views: 606

Re: Uploading to the external flash memory on RP2040 board

Thanks everyone for your suggestions. I tried to use the assembler using .incbin, but I've not been successful in getting it to work. I can't use .rodata which I think it because I'm using the Arduino IDE to upload and as I am using Arduino libraries (such as WiFiNINA) I didn't try and move it acros...
by penguintutor
Fri Oct 22, 2021 7:18 pm
Forum: SDK
Topic: Uploading to the external flash memory on RP2040 board
Replies: 14
Views: 606

Re: Uploading to the external flash memory on RP2040 board

my prefered method is to use .incbin in a .S file to embed a file into the binary Ah perfect thanks. That sounds like that will do what I want. I'm only dealing with text files at the moment, but that would also be useful if I wanted to add image files as well. I was literally just putting a const ...
by penguintutor
Fri Oct 22, 2021 6:55 pm
Forum: SDK
Topic: Uploading to the external flash memory on RP2040 board
Replies: 14
Views: 606

Re: Uploading to the external flash memory on RP2040 board

Sorry I didn't explain it very well. By not in the program memory I meant for it to be outside of the UF2 file, stored on the flash memory chip. Ideally in a way similar to how MicroPython uses it to store separate files. Failing that perhaps I need to look at a better way of storing the data in the...
by penguintutor
Fri Oct 22, 2021 4:07 pm
Forum: SDK
Topic: Uploading to the external flash memory on RP2040 board
Replies: 14
Views: 606

Uploading to the external flash memory on RP2040 board

Does anyone know how I can transfer / upload data onto the flash memory on a Pico (and related boards)? This needs to go onto the memory chip on the board rather than in the normal program memory. I am not looking to store data from the running program (which I believe is possible using the hardware...
by penguintutor
Mon Feb 15, 2021 5:39 pm
Forum: General
Topic: Raspberry pi can't read pico
Replies: 2
Views: 1136

Re: Raspberry pi can't read pico

If you have a Python programming running then you normally have to press the Stop button in Thonny before you can then save to it.
by penguintutor
Mon Feb 15, 2021 5:29 pm
Forum: General
Topic: Pico as I2C slave (solved)
Replies: 25
Views: 5179

Re: Pico as I2C slave

I have recently got this working. I've created a video here: Video: Raspberry Pi to Pico and Arduino using I2C And more details (including code download) here: Using i2c between Raspberry Pi, Pico and Arduino I had to use specific request types from the Raspberry Pi (Using SMBus on Python only worke...
by penguintutor
Mon Feb 15, 2021 5:24 pm
Forum: General
Topic: Connecting a Pi to a Pico 4 metres away
Replies: 37
Views: 2015

Re: Connecting a Pi to a Pico 4 metres away

You could use I2C. It's designed for shorter distances (typically 2 meters), but should work over much longer distances at a lower speed. I've just published a video explaining about how to get I2C working between a Raspberry Pi and a Pico: https://youtu.be/Wh-SjhngILU With some more information on ...
by penguintutor
Mon Feb 01, 2021 1:01 pm
Forum: General
Topic: Can I use PICO as hardware controller for Pi4 based robot?
Replies: 6
Views: 1925

Re: Can I use PICO as hardware controller for Pi4 based robot?

I've just created a project you may find helps. It's using the UART for communications between a Raspberry Pi and a Pico. In this case it creates a voltmeter using the ADC on the Pico, but you could use it for controlling a robot etc. There's a video showing it: https://youtu.be/egOOW0WstRg You can ...
by penguintutor
Tue Oct 20, 2020 6:01 pm
Forum: Beginners
Topic: I need hardware recommendations to control 4 stepper motors
Replies: 2
Views: 194

Re: I need hardware recommendations to control 4 stepper motors

There are different stepper motors, but assuming you have a bipolar stepper motor with 2 windings (4 wires) then you need 2 H-bridges per motor (one per winding). I believe the Adafruit motor shield would only control 2 stepper motors. You could use an IC such as SN754410 or a L298N (which is availa...
by penguintutor
Tue Oct 20, 2020 5:46 pm
Forum: Beginners
Topic: Question on portable monitors
Replies: 6
Views: 1735

Re: Question on portable monitors

I'd suggest a Nexdock2.

It has an HDMI adapter and can connect as a USB keyboard / touchpad to control the Raspberry Pi.

Click here for a a video review I made of the Nexdock 2 with a Raspberry Pi
by penguintutor
Tue Oct 20, 2020 5:40 pm
Forum: Beginners
Topic: Electrical panel Mount for RPI Touchscreen
Replies: 1
Views: 177

Re: Electrical panel Mount for RPI Touchscreen

There are different cases you can get for the RPI TouchScreen, but I'm not aware of one specifically for installing on the front of a cabinet. You could create your own cutout and then use some brackets across the back to hold it in place using the 4 mounting screws. Alternatively you could try a Sm...
by penguintutor
Tue Oct 20, 2020 5:27 pm
Forum: Beginners
Topic: Postgres on Pi zero
Replies: 5
Views: 976

Re: Postgres on Pi zero

It's been a while since I've run Postgres, but it really depends upon what you want to do with it. If you just want to use it with a small dataset for a few users then you can use it with much less resources. However if you want to store a lot of data and have lots of users connect then you will nee...
by penguintutor
Tue Jun 09, 2020 10:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)
Replies: 4
Views: 1817

Re: Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)

Apologies to @KokkalisKo - I didn't have notifications turned on so I missed you message. I'm not sure wether this also answers @Julia202 - I didn't use LIRC in the end, but perhaps this is an alternative you could try instead. In the end I decided that pigpio was much simplier and met my requiremen...
by penguintutor
Tue Jun 09, 2020 10:16 am
Forum: Troubleshooting
Topic: Multiple ip camera connection via Ethernet and USB Ethernet
Replies: 4
Views: 841

Re: Multiple ip camera connection via Ethernet and USB Ethernet

You can use wireless and wired ethernet at the same time. One way is to connect the switch to the same router as the wireless network, although in that case you probably don't need to use wireless anyway. I assume though you mean having a local network via wired ethernet to the switch and wireless t...
by penguintutor
Mon Jun 08, 2020 7:03 am
Forum: Beginners
Topic: Sending images and emails through network with GPIO
Replies: 2
Views: 315

Re: Sending images and emails through network with GPIO

There are different ways you could implement this. You will need a program monitoring for the button press. Python and gpiozero would work well. There are lots of guides online about sending an email from Python. The image could be transferred using SSH, http (if you ran a web server), FTP or you co...
by penguintutor
Mon Jun 08, 2020 6:46 am
Forum: Beginners
Topic: Choosing: Pull Up or Pull Down Resistor
Replies: 23
Views: 2420

Re: Choosing: Pull Up or Pull Down Resistor

You are correct that serial and I2C are communication protocols. To use those you would need some circuitry at the other end to communicate the status over the serial protocol. The problem with the length of the cable is down to resistance of the cable and signal to noise ratio. The resistance of th...
by penguintutor
Sun Jun 07, 2020 8:40 am
Forum: Troubleshooting
Topic: Multiple ip camera connection via Ethernet and USB Ethernet
Replies: 4
Views: 841

Re: Multiple ip camera connection via Ethernet and USB Ethernet

Are you connecting an Ethernet adapter for each camera? That would create different networks and need different addressing for each interface. It would be better to have a switch which connects the Pi and all the cameras on a single LAN. Then configure each camera with a unique IP address but on the...
by penguintutor
Fri Jun 05, 2020 3:57 pm
Forum: Advanced users
Topic: Driving a pin low when the Pi is halted
Replies: 6
Views: 612

Re: Driving a pin low when the Pi is halted

When the Raspberry Pi is powered down then the GPIO is neither on nor off so goes floating. If your control circuit for the fan has a high imedence (eg. a FET) then it may be seeing this as a signal and turning on accordingly. You could try putting a large resistor between the GPIO pin and ground. T...
by penguintutor
Mon Apr 06, 2020 9:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)
Replies: 4
Views: 1817

Re: Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)

As there has been no response from this I've been looking at alternatives.

It looks like pigpio provides what I need which is easier than using Lirc anyway. So I'm looking at using that instead for now.
by penguintutor
Mon Apr 06, 2020 9:54 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 not working with NexDock screen
Replies: 3
Views: 774

Re: Raspberry Pi 4 not working with NexDock screen

It's worth noting that this only applies to the original NexDock. The new NexDock 2 is now available which is very different from the first model. As far as I've tested the new NexDock 2 works out of the box with all current models of Raspberry Pi without need for any special configuration on the Ra...
by penguintutor
Thu Apr 02, 2020 6:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Arduino Serial Connection via GPIO and Level Shifter
Replies: 6
Views: 1108

Re: Arduino Serial Connection via GPIO and Level Shifter

I believe that chip only works one-way, but for serial you will need a bidirectional level-shifter

The following from Adafruit sounds like it should work

https://www.adafruit.com/product/757

Here's a guide to configuring serial on the Raspberry Pi.

https://elinux.org/RPi_Serial_Connection
by penguintutor
Thu Apr 02, 2020 9:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)
Replies: 4
Views: 1817

Problems with new version of LIRCD (Infrared remote-control receiver and transmitter)

Has anyone successfully installed and configured Lirc on a Pi 4 with the latest image? The latest version appears to be broken. I have installed and configured Lircd and I am able to send remote control signals using irsend, but I am struggling getting receiving to work. Lirc can see the remote cont...
by penguintutor
Wed Jul 10, 2019 3:31 pm
Forum: Troubleshooting
Topic: Trouble Getting HDMI Output From RPi4
Replies: 63
Views: 50823

Re: Trouble Getting HDMI Output From RPi4

I've found a way to get the HDMI working on a NexDock (v1). It may help with others that are having similar problems with other HDMI devices. When connected to the NexDock then I just got a blank screen. It appears to be a problem with the Pi (Raspbian) reading the EDID information from the screen. ...
by penguintutor
Tue Jul 09, 2019 8:47 pm
Forum: Troubleshooting
Topic: Raspberry Pi 4 not working with NexDock screen
Replies: 3
Views: 774

Re: Raspberry Pi 4 not working with NexDock screen

After a lot of work trying different configurations I finally found a working solution. Not only did I have to find a suitable resolution, but I had to disabled the edid from being read from the screen. These are the entries in my /boot/config.txt for anyone else that has similar problems. hdmi_igno...

Go to advanced search