Raspberry Pico W using TinyUSB and Wifi in parallel

We are currently working on a device that would realize a kind of "Remote BarCode" Scanner. So we have a pico that emulates a Keyboard and the devices is connected through Wifi to a Mqtt Server. As we have know-how with Arduino IDE we used this for the small script. For the Hardware we are using the Pico W Version.

Here we use :

#include "Adafruit_TinyUSB.h"
#include "TinyUSB_Mouse_and_Keyboard.h"
#include "Adafruit_MQTT.h"

#include "Adafruit_MQTT_Client.h"
#include "WiFi.h"

Anyway the main problem is, that working with either Keyboard OR Wifi will work perfectly, but once working in the same script something goes wrong. E.g. the keyboard is not recognized or the wifi will not connect ?!? So I assume there is a conflicts (e.g. in resources or interupts) which Wifi and Keyboard (actually HID Usb Device) are sharing ? Even more weird I have Win11 Box here which works, we the devices are "started" in a certain order, and other boxes where the setup does not work at all. Anyway separated samples with Keyboard or Mqtt/Wifi are always working ...

Hard to debug, but any though where the conflicts comes from.

Any help is welcome

You are correct it is hard to debug especially when we cannot see it. Post an annotated schematic as you have wired it showing all power, ground, and power sources. Be sure to specify what Arduino you are using. Also I cannot determine if this is an Arduino problem or a windows problem or both. When posting follow the forum guidelines.

Right, this is NOT an Arduino but a Raspberry Pi Pico W (RP2040 MCU). Basically we are using this model because there is HID USB (for device mode) and a Wifi on board.
We tried already with an ESP32 but here it seems that the final Windows box is asking for a driver.

Using the forum guidelines post your code and a schematic, not a frizz picture. I am not good at word problems.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.