@leeg.1402 Thanks, Lee. It would be really good to get it working with a finger. I don't know whether I've got any touch sensors included in various kit and I don't really understand the ins and outs of capacitors and what the differences between the ceramic ones and the electrolytic ones. The trouble is that the R4 hasn't been around long enough for other people to have done all the hard work for us😁 And Keith doesn't have one😿👎
We don't need no stinkin' variables! 😄 I did a touch sensor with an ESP32 and it's much easier. The R4 wifi board has an esp chip on it. I'll have to check out that video, but this one was pretty good, too! 👍
@VeryUsMumblings Agreed!! Variables and documentation are for wimps!! When I'm feeling REALLY lazy (which is most of the time), I just convert by dividing by 4 but I've just found out about analogReadResolution so I didn't need the conversion bit either. On the down side, 'analogReadResolution(8)' takes longer to type than '/ 4'. Thanks for watching (and commenting)👍
I got the touch sensor working. (not the heart button) on pin 9. I think you were right. It needs a ceramic capacitor abouot 10 nano farads. I happened to have one. I was thinking about posting a video on it. 😄
@VeryUsMumblings I've been rummaging around and I found a 330nF ceramic capacitor in my Monk's Makes Starter Kit for the Raspberry Pi (the very first kit that I ever bought in a big fairly empty box😿). The legs were very short so I had to put it on my breadboard with leads going to grd and pin 7 but ......... IT WORKS!!!!
EXCELLENT! In your first program, I think you should use local variables in the loop function, instead of doing all function calls in one line. Your second program shows how useful direct port/register access is. :-) I have an idea how to make an easy touch sensor, but I need the time to play with it.
@peterkarlsson7801 Ah, yes, I know that it would have been better to have used some variables but I wanted to see whether I could do it without any at all. I did say that 'This is how you COULD do it, not how you SHOULD do it'😁 Normally I would do it all in one line without using functions but the homework was all about using functions. In fact I already had written the program which consisted of 2 variables, 1 line in setup and 1 line in loop. I hate typing!!! You ought to look at Delta_G Robotics's stuff. Like you, he actually understands the documentation. Thanks for watching (and commenting).
Interesting. Thanks.
Nice video. The touch sensor is intriguing; I’ll have to put checking that out on my never-ending “to do” list. Thanks for posting.
@leeg.1402 Thanks, Lee. It would be really good to get it working with a finger. I don't know whether I've got any touch sensors included in various kit and I don't really understand the ins and outs of capacitors and what the differences between the ceramic ones and the electrolytic ones. The trouble is that the R4 hasn't been around long enough for other people to have done all the hard work for us😁 And Keith doesn't have one😿👎
We don't need no stinkin' variables! 😄 I did a touch sensor with an ESP32 and it's much easier. The R4 wifi board has an esp chip on it. I'll have to check out that video, but this one was pretty good, too! 👍
@VeryUsMumblings Agreed!! Variables and documentation are for wimps!! When I'm feeling REALLY lazy (which is most of the time), I just convert by dividing by 4 but I've just found out about analogReadResolution so I didn't need the conversion bit either. On the down side, 'analogReadResolution(8)' takes longer to type than '/ 4'. Thanks for watching (and commenting)👍
I got the touch sensor working. (not the heart button) on pin 9. I think you were right. It needs a ceramic capacitor abouot 10 nano farads. I happened to have one. I was thinking about posting a video on it. 😄
@VeryUsMumblings I've been rummaging around and I found a 330nF ceramic capacitor in my Monk's Makes Starter Kit for the Raspberry Pi (the very first kit that I ever bought in a big fairly empty box😿). The legs were very short so I had to put it on my breadboard with leads going to grd and pin 7 but ......... IT WORKS!!!!
@@charlotteswift Congratulations! 👍
EXCELLENT!
In your first program, I think you should use local variables in the loop function, instead of doing all function calls in one line.
Your second program shows how useful direct port/register access is. :-)
I have an idea how to make an easy touch sensor, but I need the time to play with it.
@peterkarlsson7801 Ah, yes, I know that it would have been better to have used some variables but I wanted to see whether I could do it without any at all. I did say that 'This is how you COULD do it, not how you SHOULD do it'😁
Normally I would do it all in one line without using functions but the homework was all about using functions. In fact I already had written the program which consisted of 2 variables, 1 line in setup and 1 line in loop. I hate typing!!!
You ought to look at Delta_G Robotics's stuff. Like you, he actually understands the documentation.
Thanks for watching (and commenting).
Look at you searching like a hunter gatherer. Welcome to the dark side.
@keithlohmeyer Strangely, my reply disappeared off my own video😿The YT peeps must REALLY hate me. I said that I won't make a habit of it.