Go to advanced search

by EULERPI
Tue Feb 02, 2021 12:00 pm
Forum: General
Topic: Writing multiple pins with PIO Statemachines [C][Assembly][PIO]
Replies: 5
Views: 1033

Re: Writing multiple pins with PIO Statemachines [C][Assembly][PIO]

Hi,

I don't know if this applies but the mapping of set and out onto pins is configured independently (page 65 of Pico C/C++ SDK document).

I know little about PIO assembler in C but maybe replace set in pio_sm_set_ etc with pio_sm_out_ etc?.


Regards

Nick
by EULERPI
Sun Jan 31, 2021 11:48 am
Forum: SDK
Topic: Debian/VS Code/C++/PicoProbe
Replies: 8
Views: 771

Re: Debian/VS Code/C++/PicoProbe

Hi,

I found after to trying to get the SWD debug working that the settings.json file in Pico-Examples contained code to hide the build and select target options. So my copying/cutting and pasting into settings.json probably stopped VS Code from doing its normal functions.

Many thanks.
by EULERPI
Sun Jan 31, 2021 11:14 am
Forum: SDK
Topic: Debian/VS Code/C++/PicoProbe
Replies: 8
Views: 771

Re: Debian/VS Code/C++/PicoProbe

Hi, My program now seems to be building in VS Code. I created a new Pi OS directory for my project outside of Pico directory. Ran pico project generator with VS Code option selected. I created a .VS Code directory inside my project directory and placed the launch.json code attached above in it. Ran ...
by EULERPI
Sun Jan 31, 2021 6:24 am
Forum: SDK
Topic: Debian/VS Code/C++/PicoProbe
Replies: 8
Views: 771

Re: Debian/VS Code/C++/PicoProbe

Hi, I can't get my own projects generated via the project generator to build in VS Code (on R Pi4/Raspberry 32bit OS). The VS Code build icon does not appear and I can't select the project as the build target. No problems if I use the Pico examples. Was that a problem that you had and was it solved ...
by EULERPI
Tue Jan 26, 2021 4:21 pm
Forum: General
Topic: Visual Studio Code - Build button vanished
Replies: 3
Views: 890

Re: Visual Studio Code - Build button vanished

Hi, Whilst waiting for my pico to arrive I thought I'd find my way around Visual Studio Code which I installed on my Pi 4 as per the Getting Started Guide (Quick Pico Setup). Having tried to follow Section 6.2 up to the point that it needs a pico I now find that the 'Build' button and '[all]' have ...
by EULERPI
Mon Jan 25, 2021 3:25 pm
Forum: SDK
Topic: error building examples in vscode on windows
Replies: 9
Views: 1525

Re: error building examples in vscode on windows

Hi,

I've got VS Code building pico-examples now. I think it might have been because I had hello.c open when clicking build but that is just a guess.

I'm now trying debugging using a Raspberry Pi 4B GPIO connected to the Pico.

Regards
by EULERPI
Sun Jan 24, 2021 9:23 am
Forum: SDK
Topic: error building examples in vscode on windows
Replies: 9
Views: 1525

Re: error building examples in vscode on windows

Hi, As requested more info on the messages when opening the blink folder and trying to build the blink program. I installed Raspberry Pi OS 32 bit onto a new Micro SD card with Raspberry Pi Imager on a Win 10 PC. I set up VNC on the Pi 4B. I updated and upgraded the distribution. I ran Pico Setup. I...
by EULERPI
Sat Jan 23, 2021 7:35 pm
Forum: SDK
Topic: error building examples in vscode on windows
Replies: 9
Views: 1525

Re: error building examples in vscode on windows

Hi, I've got something similar. VS Code on Raspberry Pi OS 32, PI4B won't build the Pico Examples. VS Code suggests I add Cmake_minimum_required(VERSION3.1.3) to CMakeList.txt but also says cannot open source files in #include statements. Regards please post what you did, exactly and the build outp...
by EULERPI
Sat Jan 23, 2021 6:47 pm
Forum: SDK
Topic: error building examples in vscode on windows
Replies: 9
Views: 1525

Re: error building examples in vscode on windows

Hi,

I've got something similar.
VS Code on Raspberry Pi OS 32, PI4B won't build the Pico Examples.
VS Code suggests I add Cmake_minimum_required(VERSION3.1.3) to CMakeList.txt but also says cannot open source files in #include statements.

Regards
by EULERPI
Sun May 27, 2018 5:12 am
Forum: General discussion
Topic: Model train project help
Replies: 14
Views: 2672

Re: Model train project help

If all you want is the functionality rather than the challenge of writing code yourself then there is JMRI. I think it stands for Java Model Railway Interface. The Java is what the program suite is written in. There is the potential to extend the suite if needs be using Jython scripts - which I've ...
by EULERPI
Wed May 23, 2018 3:07 pm
Forum: Beginners
Topic: Arduino Uno + Raspberry Pi3
Replies: 2
Views: 432

Re: Arduino Uno + Raspberry Pi3

Hi, Maybe not better in all cases but possibly easier as Arduino USB output can be connected into a P3 3 USB port. If you have access to Chinese Arduino Nano clones they can be ordered from the UK from £1.50 including postage. I've got one talking to a sensor and sending the data serially to a Raspb...
by EULERPI
Sat May 12, 2018 6:10 am
Forum: General discussion
Topic: Model train project help
Replies: 14
Views: 2672

Re: Model train project help

If all you want is the functionality rather than the challenge of writing code yourself then there is JMRI. I think it stands for Java Model Railway Interface. The Java is what the program suite is written in. There is the potential to extend the suite if needs be using Jython scripts - which I've f...
by EULERPI
Tue Mar 14, 2017 9:15 am
Forum: C/C++
Topic: How to use 100 percent of the raspberry pi cpu in C programs
Replies: 7
Views: 3269

Re: How to use 100 percent of the raspberry pi cpu in C prog

Hi, I echo LdB's guidance and would just add that once you've worked out whether the programme can go any faster (profiling) you can look at 'multiprocessing'. Assuming your Pi has four cores and your program is capable of being split into parallel tasks then you can use threading in C. There may be...
by EULERPI
Mon Mar 06, 2017 11:37 am
Forum: Raspberry Pi OS
Topic: Can't connect microsoft 3600 bluetooth mouse
Replies: 19
Views: 11836

Re: Can't connect microsoft 3600 bluetooth mouse

Thanks,

I think I'll try the instructions on a spare micro SD card of the latest Raspbian Jessie.

Maybe the experimental version of Bluez will fix the problem of choppy Bluetooth audio output when wifi is enabled.

Regards

Nick
by EULERPI
Mon Mar 06, 2017 9:30 am
Forum: General discussion
Topic: Looking for a Bluetooth keyboard for my Pi 3B
Replies: 7
Views: 5434

Re: Looking for a Bluetooth keyboard for my Pi 3B

Hi, I'm using a Kensington KP400 Bluetooth/USB switchable keyboard with Raspberry PI 3Bs and Pi Zero W. Its full size but doesn't have a touchpad. I haven't had any problems using the Bluetooth Keyboard and Wifi at the same time - only with Bluetooth Audio out at the same time as Wifi (on the Pi 3B ...
by EULERPI
Sat Mar 04, 2017 4:05 pm
Forum: Other projects
Topic: Fix for problem with Mini HDMI adapter in Pi Zero case
Replies: 4
Views: 3798

Fix for problem with Mini HDMI adapter in Pi Zero case

Hi, I found that with the new Official Pi Zero case the HDMI to mini HDMI adapters wouldn't reliably stay plugged into the Pi Zero W. The adapters are from the Pi Hut UK and Pimoroni UK. I looked at a copy of the HDMI mechanical specification and the length of the Mini HDMI plug body does not seem t...
by EULERPI
Sat Mar 04, 2017 11:16 am
Forum: Troubleshooting
Topic: Stuttering Bluetooth Audio output when Wifi is on
Replies: 1
Views: 1079

Stuttering Bluetooth Audio output when Wifi is on

Hi, While trying out the new Pi Zero W Raspbian Bluetooth Audio output I noticed the Audio was very choppy unless the Wifi was disabled with sudo ifconfig wlan down. I think I read that this is also a feature of the Pi 3B built in Wifi/Bluetooth. Does anyone know of a fix for Raspbian/Pixel or if th...
by EULERPI
Sun Feb 26, 2017 7:35 pm
Forum: General discussion
Topic: Low cost USB to Ethernet adapters
Replies: 3
Views: 1943

Re: Low cost USB to Ethernet adapters

Many thanks for your info.

With your info I can dig deeper.

Regards

Nick
by EULERPI
Sun Feb 26, 2017 12:00 pm
Forum: General discussion
Topic: Low cost USB to Ethernet adapters
Replies: 3
Views: 1943

Low cost USB to Ethernet adapters

Hi, I'm working on a computer vision system for model railway train position detection (hidden sidings only) and I'm looking into an alternative set up using Pi Zeros and cameras to do a little initial image processing and passing the reduced data to a central computer. Has anyone have experience of...
by EULERPI
Sat Feb 25, 2017 10:11 am
Forum: Beginners
Topic: Communication between Raspberry pi and Arduino
Replies: 4
Views: 2702

Re: Communication between Raspberry pi and Arduino

Hi, On the Arduino you could attached a bit of text in front of the sensor data to identify which sensor it is. You could for example use a capital A for the first sensor through to E for the sixth sensor or you could give them unique names. Then on the Raspberry Pi write a bit of code to separate o...
by EULERPI
Sun Feb 12, 2017 5:31 pm
Forum: Camera board
Topic: Raspberry Pi Camera V2 Video Module as QR Code Scanner
Replies: 2
Views: 1444

Re: Raspberry Pi Camera V2 Video Module as QR Code Scanner

Hi, I don't see why not providing the QR codes are not moved in front of the camera too fast (I was thinking of a conveyor belt). There seems to be at least one open source Python 'library' that is said to read QR codes (but I haven't tried one myself). The picamera (Python) 'library' can read still...
by EULERPI
Thu Feb 09, 2017 4:14 pm
Forum: Off topic discussion
Topic: Asus Tinker board
Replies: 155
Views: 25757

Re: Asus Tinker board

Hi

The ASUS Tinker board may have been withdrawn from sale at least from CPC uk:

https://www.techgig.com/tech-news/edito ... Sale-91249

Regards

Nik
by EULERPI
Tue Feb 07, 2017 9:46 am
Forum: Camera board
Topic: V3 camera in the works?
Replies: 62
Views: 20588

Re: V3 camera in the works?

[quote="Gavinmc42" I would like to use the Zero as Cameras that do some preprocessing. If used as USB gadgets 4 x Zero could plug into one Pi 2/3, then each core could do the cv stuff per camera. This sort of speed is only really needed on drones etc. [/quote] Hi, Sorry I thought the farm ...
by EULERPI
Mon Feb 06, 2017 12:09 pm
Forum: Camera board
Topic: V3 camera in the works?
Replies: 62
Views: 20588

Re: V3 camera in the works?

Rpf now has enough people to do work on the camera system, Yippee, that means the cameras won't be orphans. Can we expect more family members? There are some effects filter options that would be nice to have the VC4 to do. NDVI and ENDVI using the NOIR cameras with blue and red filters. http://www....
by EULERPI
Sun Feb 05, 2017 4:27 pm
Forum: Java
Topic: Multithreading CPU usage
Replies: 10
Views: 4735

Re: Multithreading CPU usage

Hi, Glad to be of help. Your question prompted me to learn how to prepare and run a Java program. I moved the system.out.println to outside the for loop and made the for loops longer using long integer types and values and got all CPUs reported as 100% in htop. It also sent the SoC temperature of th...

Go to advanced search