nw2s::b digital outs behavior

Discussion, support, and resources for our noise making modules and kits.

Moderators: Kent, scottwilson

Post Reply
User avatar
spacenoodle
Veteran Wiggler
Posts: 737
Joined: Tue Mar 20, 2012 9:00 pm
Location: Madison, WI

nw2s::b digital outs behavior

Post by spacenoodle » Sat Apr 18, 2015 10:18 am

Is there a way to prevent all the digital outs from going high when powering up or hitting reset?

User avatar
scottwilson
Wiggling with Experience
Posts: 435
Joined: Mon Sep 16, 2013 12:54 pm

Post by scottwilson » Sat Apr 18, 2015 5:57 pm

Unfortunately, it's just the way the Cortex works when it gets a hard reset.

If the problem is that you're getting lots of triggers fired when you reset to load, then an alternative would be a soft reset rather than a hard reset. If you could spare a digital input, then one of them could be used as a soft reset... or some other programmatic condition.

Are you using the framework or homegrown sketches?

-s

User avatar
spacenoodle
Veteran Wiggler
Posts: 737
Joined: Tue Mar 20, 2012 9:00 pm
Location: Madison, WI

Post by spacenoodle » Sun Apr 19, 2015 9:35 pm

Oh ok. I hadn't thought of making a custom reset and it seems like it might work well enough. The problem is while the reset button it pressed, everything goes high and receiving modules react in undesirable ways. I haven't tried the framework method, just standard Arduino scripting. Thanks for the advice!

User avatar
scottwilson
Wiggling with Experience
Posts: 435
Joined: Mon Sep 16, 2013 12:54 pm

Post by scottwilson » Mon Apr 20, 2015 5:30 am

Consensus seems to be the best way to reboot is to set a short watchdog timer and let it expire.

Most of the examples out there are for AVR, not ARM, so if you need some help, lemme know and I can probably write something boilerplate for you.

s

Post Reply

Return to “nw2s”