I set up a button on the Crikit as shown on this page:
https://learn.adafruit.com/adafruit-cr ... e-signals
However, even when the button is not pressed (open), the digital signal intermittently will return a true signal. If the button is pressed (closed), the signal will always return a true signal to the makecode, so that is working.
I've attached my Makecode program for reference.
Thanks for the help
Micro:bit Crickit Signal IO issues
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Micro:bit Crickit Signal IO issues
Post a photo showing your hardware and connections please. Schematics only show how things are supposed to be, and rarely include the things that actually cause problems.
800x600 images usually work best.
800x600 images usually work best.
- jhajel
- Posts: 22
- Joined: Sun Jul 17, 2016 2:59 pm
Re: Micro:bit Crickit Signal IO issues
Here is a video of the set up with unexpected behavior.
https://www.youtube.com/watch?v=aGdGY7yJ-V4
Also, I am uploading the exact MakeCode program that is shown in the video.
https://www.youtube.com/watch?v=aGdGY7yJ-V4
Also, I am uploading the exact MakeCode program that is shown in the video.
- jhajel
- Posts: 22
- Joined: Sun Jul 17, 2016 2:59 pm
Re: Micro:bit Crickit Signal IO issues
Ok, I think I fixed this by adding a pull-down (I think) resistor as shown here:
https://learn.adafruit.com/crickit-and- ... o/overview.
However, it states that the Crickit has a internal pull-up resistor, but when I hooked up with just a connection between the signal and ground, I got a floating input.
"All pins can have an internal ~50Kohm pull-up resistor set when used as an input"
Here: https://learn.adafruit.com/adafruit-cri ... ickit-tour
Thanks,
JMH
(Note: my knowledge of electrical circuits is pretty minimal)
https://learn.adafruit.com/crickit-and- ... o/overview.
However, it states that the Crickit has a internal pull-up resistor, but when I hooked up with just a connection between the signal and ground, I got a floating input.
"All pins can have an internal ~50Kohm pull-up resistor set when used as an input"
Here: https://learn.adafruit.com/adafruit-cri ... ickit-tour
Thanks,
JMH
(Note: my knowledge of electrical circuits is pretty minimal)
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Micro:bit Crickit Signal IO issues
Just to check, did you set the pins using the INPUT_PULLUP identifier? That's what tells the Crickit's microcontroller to connect the built-in pull-up resistors.
- jhajel
- Posts: 22
- Joined: Sun Jul 17, 2016 2:59 pm
Re: Micro:bit Crickit Signal IO issues
I am using MakeCode. Is there such a command with the MakeCode programming?
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Micro:bit Crickit Signal IO issues
I'm afraid I'll need to pass that over to the MakeCode forum.
- jhajel
- Posts: 22
- Joined: Sun Jul 17, 2016 2:59 pm
Re: Micro:bit Crickit Signal IO issues
I am trying to use the Signal IO with a pullup resistor on Crickit, but I do not see a command to do that.
Can anyone help?
Can anyone help?
Please be positive and constructive with your questions and comments.