Category : adc

I’m trying to read to calculate the capacitance with the Arduino Uno. I did this successfully with the Arduino function. unsigned long starttime = 0; unsigned long endtime = 0; double C = 0; float n = 3.0; //time constant float resistor = n * 998000.0; int analogValue = 0; void setup() { Serial.begin(9600); pinMode(5, ..

Read more

I am having trouble get my Arduino HID Axis controller to read correctly in windows. I am using an older version of this code (https://github.com/MHeironimus/ArduinoJoystickLibrary) which I’m modifying to get rid of everything except the axis’. #include "Joystick.h" #if defined(_USING_HID) #define JOYSTICK_REPORT_ID 0x03 #define JOYSTICK_STATE_SIZE 9 static const uint8_t _hidReportDescriptor[] PROGMEM = { // Joystick ..

Read more