Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:12 15 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Use a Pico W as a Bluetooth device

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1637
Posted: 11:53am 13 Nov 2025
Copy link to clipboard 
Print this post

I kinda like the idea of using a Pico wherever possible.

aFox came-up with this Arduino code for Pico W BT-to-serial converter.

It has given me another cool idea but I can't find my darned PicoW  


#include <SerialBT.h>

void setup() {
 Serial1.setFIFOSize(512);
 Serial1.begin(115200);
 SerialBT.setFIFOSize(512);
 SerialBT.begin();
}

void loop() {
 while (SerialBT) {
   if (Serial1.available()) {      // If anything comes in Serial1 (pins 0 & 1)
     SerialBT.write(Serial1.read());   // read it and send it out SerialBT
   }

   if (SerialBT.available()) {     // If anything comes in SerialBT,
     Serial1.write(SerialBT.read());    // read it and send it out Serial1 (pins 0 & 1)
   }

 }
}


The compiled uf2:

BtSerialSerial1Passthrough.zip
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 701
Posted: 12:21pm 13 Nov 2025
Copy link to clipboard 
Print this post

Why not for 6€ and easy to understand.
Fantastic work
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1637
Posted: 02:57pm 13 Nov 2025
Copy link to clipboard 
Print this post

  dddns said  
Fantastic work


Good resource, thanks  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8293
Posted: 03:30pm 13 Nov 2025
Copy link to clipboard 
Print this post

Whoosh.....
right over my head. lol

Why use an arduino when there are specialised BT-serial modules around? I'm thinking of the HC05 and HC06.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1637
Posted: 05:32pm 13 Nov 2025
Copy link to clipboard 
Print this post

  Mixtel90 said  Whoosh.....
right over my head. lol

Why use an arduino when there are specialised BT-serial modules around? I'm thinking of the HC05 and HC06.


I wonder...

Terminal connection via BlueTooth to the BT-serial device (Pico W).

BUT, I would like to switch between four PicoMites using that one link

Modify the Arduino code to look for a command to switch to other UART pins:


>PICOMITE-2


The Arduino now directs the terminal to the UART that is connected to PICOMITE-2 instead of PICOMITE-1

Naturally, can't find my Pico W.  
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025