hello everyone,
it's been a while that i'm ‘studying’ the arduino world for my purposes, until now i've always bought third party boards, just that for my hobbies i need to have a board with lots of output pins (before i only used arduino micro and one) now i've seen that there is arduino mega 2560, but it has the problem that it is not recognised as a device (HID) to turn it into a gaming peripheral or joystick, surfing a bit on the internet I found a board the SAMD21 that ‘turns’ the mega into a HID device, but how do I get the 2 boards to communicate? I've tried loading the sketches, the samd21 is recognised as a joystick device, while I've given simple commands such as a light game with leds to the mega, but when I connect the samd21 it doesn't seem to communicate the data, I've connected everything correctly 5v 3.3v gnd tx rx etc..., my aim must be that if I press a button in the input commands in windows it appears as e.g. Button 1, how can I make the 2 boards communicate correctly? What am I doing wrong?
Hi @michelebosck.
Please provide a link to the product page where you bought this SAMD21 board in a reply here on the forum thread. That will give the forum helpers access to some information that will allow the forum helpers to more effectively assist you.
Aah, the joys of discovery, studying and learning.
I bought this
Microcontroller Seeeduino XIAO SAMD21 Cortex M0 + Nano 48MHZ SPI I2C interface for Arduino IDE/IOT System
While the mega is
Mega 2560 PRO MINI 5V with CH340G ATmega2560-16AU MICRO
the strange thing is that I can configure the samd21 and the buttons in the mega as a joystick, even from the serial monitor I see that everything is ok, but if I only connect the samd21 the commands are not read
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.