|
Forum Index : Microcontroller and PC projects : Use a Pico W as a Bluetooth device
| Author | Message | ||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1637 |
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: GermanyPosts: 701 |
Why not for 6€ and easy to understand. Fantastic work |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1637 |
Good resource, thanks |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8293 |
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 KingdomPosts: 1637 |
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. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |