Micro:bit Crickit Signal IO issues

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jhajel
 
Posts: 22
Joined: Sun Jul 17, 2016 2:59 pm

Micro:bit Crickit Signal IO issues

Post by jhajel »

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.

[The extension hex has been deactivated and can no longer be displayed.]

Thanks for the help

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Micro:bit Crickit Signal IO issues

Post by adafruit_support_mike »

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.

User avatar
jhajel
 
Posts: 22
Joined: Sun Jul 17, 2016 2:59 pm

Re: Micro:bit Crickit Signal IO issues

Post by jhajel »

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.

[The extension hex has been deactivated and can no longer be displayed.]


User avatar
jhajel
 
Posts: 22
Joined: Sun Jul 17, 2016 2:59 pm

Re: Micro:bit Crickit Signal IO issues

Post by jhajel »

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)

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Micro:bit Crickit Signal IO issues

Post by adafruit_support_mike »

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.

User avatar
jhajel
 
Posts: 22
Joined: Sun Jul 17, 2016 2:59 pm

Re: Micro:bit Crickit Signal IO issues

Post by jhajel »

I am using MakeCode. Is there such a command with the MakeCode programming?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Micro:bit Crickit Signal IO issues

Post by adafruit_support_mike »

I'm afraid I'll need to pass that over to the MakeCode forum.

User avatar
jhajel
 
Posts: 22
Joined: Sun Jul 17, 2016 2:59 pm

Re: Micro:bit Crickit Signal IO issues

Post by jhajel »

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?

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”