Notifications
Clear all

MyoWare EMG sensor computer mouse clicking

57 Posts
4 Users
9 Reactions
3,614 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@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.


   
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@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?


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@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.


   
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@zander Yes that sounds correct.


   
Ron reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@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.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 
Posted by: @gusmill33

@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.


   
Ron reacted
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@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.Β 


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 
Posted by: @gusmill33

@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.Β 

OK

Anything seems possible when you don't know what you're talking about.


   
Ron reacted
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@will Awesome, thank you!


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 

@gusmill33Β 

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.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@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.


   
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@will the MPU6050 Library by electronic cats.


   
ReplyQuote
(@gusmill33)
Member
Joined: 2 years ago
Posts: 20
Topic starter  

@will And as far an I know the MyoWare EMG sensor does not require a library.Β 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@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.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 
Posted by: @zander

@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.


   
ReplyQuote
Page 2 / 4