Questions tagged [seeeduino-xiao]

6 questions
2
votes
2 answers

How do I solve the sensor’s abysmal abnormal output?

Problem description When XIAO microcontroller is connected to the sensor signal output pin, keep printing unexpected values. Sketch I haven't sensor circuit diagram, you can machine translate and read the…
C.SH.K
  • 45
  • 6
2
votes
0 answers

Is a PWM phase duration set with OCR1A a reliable way to communicate values to other Arduinos?

I am working on communicating 4 switch states across multiple Arduinos using only one pin. It must be as fast as conceivably possible. Currently I have a master Arduino reading all 4 switches (multiplexing) and encoding them as 4-bit values: 0001 =…
MeSo2
  • 177
  • 10
1
vote
0 answers

Need help with debugging a heartrate/filter code (the heart rate calculation does not work)

The code below is a program that aims to apply the Pans-Thompskin algorithm to a signal attained from a ECG filter. The filter seems to work alright but it fails to blink the LED and collect a correct heart rate. The threshold might be the problem…
David Chan
  • 11
  • 2
0
votes
1 answer

Seeeduino XIAO read PWM duration (period) using timers change Pins freom D2 to D1

I designed a circuitboard and need to proof the function.Therefore i have to modify the code to read from Pins D1 instead of D2. Unfourtunatly i am not that familar with the high level programming so im not sure if i got all changes. Basically all…
Hannes
  • 3
  • 1
0
votes
1 answer

Seeeduino XIAO write and read PWM duration (period) using timers

I am trying to communicate between two Seeeduino XIAO (chip: ATSAMD21G18A-MU) by way of TCC capture using register timers. Square wave pulse duration varies from 200ns to 4us. I found these two code samples, and I am now trying to change them up to…
MeSo2
  • 177
  • 10
-1
votes
1 answer

passive buzzer is drawing 500mA

I am having a ridiculously hard time trying to make a passive buzzer work correctly on my Seeeduino XIAO. Here is the buzzer module : Here is how I believe it works, assuming the SOT23 smd is a PNP transistor? : I plugged VCC to a +5V rail, GND to…
Musa
  • 147
  • 8