@gusmill33 Sorry, when you said Β int SENSOR_PIN = A0; I thought that was an analogue pin to be read. That being the case, reading it then following that read with a simple if then else where the if tests for between 300 and 500 and also for 600 to 1000 and the then doing whatever the simulation is for a click.
Is that what you mean?
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will well for simple quick clicking this would work fine I believe. Would this still work for clicking and draging for something such as highlight?
@will Another one of them multiple unknowns.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will Check my DM
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will well for simple quick clicking this would work fine I believe. Would this still work for clicking and draging for something such as highlight?
Well, you tell me π When the test value first enters a target zone, we send a message back to the PC. YDo you want to keep sending button messages each time through the loop, or do you want to wait until the test values leaves the critical area and only then send the release message ?
I'm asking because I'm trying to write some code to implement this for you as an add-on module for your sketch and I want to get as much detail correct as possible.
Anything seems possible when you don't know what you're talking about.
@will Ok, yes I would like to continue to send button messages until the target zone is left, then sending the release message once the target zone is left.Β
Which libraries are you using for the MPU6050 and the Myoware unit?
Anything seems possible when you don't know what you're talking about.
@will Adafruit has a MPU6050
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will And as far an I know the MyoWare EMG sensor does not require a library.Β
@gusmill33 That's correct
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.
@will Adafruit has a MPU6050
Yes, I know but I don't want to have to add on all of their extras if I don't have to. Besides that, I'd rather use the same library to avoid conflicts. i don't have either the MPU nor the Myoware to test the sketch, but I can at least try for a clean compile π
Anything seems possible when you don't know what you're talking about.