Adafruit 006 issues with tutorials

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
scavmartin
 
Posts: 6
Joined: Fri Feb 16, 2018 3:43 pm

Adafruit 006 issues with tutorials

Post by scavmartin »

A couple of things. The links for adabox 006 setup returns
404 all over the place.
Source Page - Link
https://learn.adafruit.com/adabox006/ge ... new-adabox - https://www.adafruit.com/category/956
https://learn.adafruit.com/adabox006/ad ... n-projects - https://learn.adafruit.com/adafruit-cir ... cuitpython
https://learn.adafruit.com/adabox006/re ... oupon-code - Bad page?
ALL CIRCUIT PYTHON GUIDES SNOW GLOBE EXAMPLE BUT SAME LINKS ON ALL - https://learn.adafruit.com/circuitpytho ... cuitpython - https://learn.adafruit.com/adafruit-cir ... cuitpython AND https://learn.adafruit.com/adafruit-cir ... -libraries


Despite that I have gotten the microsoft, arduino
and mu editors all working. When using the safe dial project (first one with
servo I tried) the code never works with MU. I have tried using the python
express and bundles for 2.2.0 (jan28 lib), 2.2.1 (feb16, and feb12 lib
bundles). None of them allow mu to accept the code in your demo. Everyone
version runs into a different issue with the code. What version should we be using to
walk though all your guides? Does each guide require a different version,
should I be going further back than 2.2.0?

My 10k potentiometer did not come with a nice black cap I see in some of
your tutorials. Should it have?

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

Re: Adafruit 006 issues with tutorials

Post by adafruit_support_mike »

Taking things in reverse, AdaBox 006 doesn't come with a switch cap for the potentiometer. We have some in the shop, but people tend to have different preferences on the kind they like.

As far as I know, the only thing you need to interact with the Circuit Playground Express is a working Serial interface using 8-N-1 connection settings. You might want to check over in the CircuitPython forum to see if the folks there have any suggestions about getting different IDEs to work:

viewforum.php?f=60

Regarding the 404 pages, some of the links you posted above work for me, but others do return 404 error pages. I'll let the folks who handle the Learning System know about that.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit 006 issues with tutorials

Post by adafruit2 »

all the 404's are fixed!

User avatar
scavmartin
 
Posts: 6
Joined: Fri Feb 16, 2018 3:43 pm

Re: Adafruit 006 issues with tutorials

Post by scavmartin »

Thanks Mike, The cap was in one of the guides that is why.

Note I have no issues connecting any IDE's. I have gotten working code into my CircuitPython using makecode, ardurino and mu. My issue is that the MU code provided by the safe dial tutorial does not work with any edition of the library that I can find when using the corresponding uf2 file. In every version I tried (listed above) I can get the basic code to work or for example the first example code to test the servo on the safe dial tutorial does work without issue. The secondary code for the entire safe dial always has an import or library error with the adafruit libraries. What exact uf2\lib version should I use for the safe dial and other tutorials to work without adafruit library errors?

Thank you for fixing the 404's!

User avatar
scavmartin
 
Posts: 6
Joined: Fri Feb 16, 2018 3:43 pm

Re: Adafruit 006 issues with tutorials

Post by scavmartin »

For the 404's you only fixed the links on the snowglobe page for the libraries. The library links and Follow guide links are bad on all the other CirtcuitPython pages as well.

Page with link - Bad Link
https://learn.adafruit.com/circuitpytho ... cuitpython - https://learn.adafruit.com/adafruit-cir ... -libraries
https://learn.adafruit.com/circuitpytho ... cuitpython - https://learn.adafruit.com/adafruit-cir ... cuitpython
https://learn.adafruit.com/combo-dial-s ... cuitpython - https://learn.adafruit.com/adafruit-cir ... -libraries
https://learn.adafruit.com/combo-dial-s ... cuitpython - https://learn.adafruit.com/adafruit-cir ... cuitpython

Thanks for fixing these. I am trying to set this up in an education setting where kids can just explore and use. Having the reference material handy is very helpfull for learning.

I look forward to know what library\uf2 version to use for all tutorials so I can ensure the optimal experience for the end user.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit 006 issues with tutorials

Post by adafruit2 »

ok will do!

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: Adafruit 006 issues with tutorials

Post by johnpark »

Hello, thanks for pointing these out, sorry for the bad links. I've just fixed them on the Fruit Sequencer and Combo Dial Safe pages. Hope that's the last of them!

As far as your issue getting the Combo Dial Safe code working, here's the steps I just took now:
  • Fresh install of CircuitPython 2.2.3 from the link in the install guide https://github.com/adafruit/circuitpyth ... -2.2.3.uf2
    Download the latest library bundle from the link in the guide: https://github.com/adafruit/Adafruit_Ci ... 180216.zip , unzip it, and copy the libraries onto the CPX lib directory
    Copy the main.py code from the Copy Code link in the guide or the Download main.py https://learn.adafruit.com/pages/11018/ ... 9/download link in the guide
    Paste the code into Mu -- make sure there isn't any leftover code already sitting in the Mu editor when you paste in the new stuff, I usually do a select all & delete before pasting just to be sure
    Press the thumbs up Check icon to see if Mu catches anything off about the syntax
    Hit the Mu Save icon and save main.py to your CPX that's plugged in
The links in the guides for both the CircuitPython download and the library download are dynamic links that always will refer to the latest release versions of both, so you should always be able to download the pair of them and get up and running quickly without needing to worry about correlating which version of CircuitPython with which version of the libraries.

For example, the current release as of this writing for CircuitPython is 2.2.3 and the current release of the library bundle is 2.2.1. Since they are both the current release versions, they work together. More info on these pages https://github.com/adafruit/circuitpython/releases https://github.com/adafruit/Adafruit_Ci ... e/releases

I'm not sure which code you're referring to when you say:
The secondary code for the entire safe dial always has an import or library error with the adafruit libraries.
From your post it sounds like you have the full code working, but then maybe were trying to run just the code snippets by themselves? There is only one main.py program in that tutorial. Those are not standalone programs that can be run by themselves, they are each section of the one program explained in greater detail. Is this perhaps the problem you ran into?

User avatar
scavmartin
 
Posts: 6
Joined: Fri Feb 16, 2018 3:43 pm

Re: Adafruit 006 issues with tutorials

Post by scavmartin »

Thank you for your help, sorry for the delay. I had to actually get to the device :)

The first code I am referencing is on https://learn.adafruit.com/combo-dial-s ... he-circuit and is available at https://learn.adafruit.com/pages/11017/ ... 2/download

The second code I am referencing is on https://learn.adafruit.com/combo-dial-s ... cuitpython and is available at https://learn.adafruit.com/pages/11018/ ... 9/download

Sorry for the confusion, I forgot about all the other snippets that follow.

I reset my CPX, it shows up as CPLAYBOOT. I drag adafruit-circuitpython-circuitplayground_express-2.2.3.uf2 onto it, it becomes CIRCUITPY. I copy the lib directory extracted from https://github.com/adafruit/Adafruit_Ci ... 180216.zip to the CIRCUITPY. I then grab the downloaded (not copy and paste) of https://learn.adafruit.com/pages/11017/ ... 2/download load it into MU and save it as main.py. My servo moves as expected and MU provides no code error and REPL shows the angle changes. Now if I download https://learn.adafruit.com/pages/11018/ ... 9/download and save it as main.py. I get the following errors https://gist.github.com/anonymous/0f59d ... 57882d4a18. I never thought about clicking the check button first, but even when I do I still get that error. Essentially the error is mostly the same based on the following combinations I had tried.

2.2.3 UF2 with 20180216 library - Originally tried and just retried and got the error provided in gist.
2.2.0 UF2 with 20180128 library
2.2.1 UF2 with 20180216 library
2.2.1 UF2 with 20180212 library



I am not sure if my petitometer is not solder'd right or whether this guide is wrong. I am using the following guide for the makecode website to use the petitometer. https://learn.adafruit.com/lightpaint-c ... nd-express

I see in the guide it defines to change brightness based on button A and button B. If I load that example code, button a and button b adjust brightness, but the petitometer does not change the brightness. Before I check my soldering work again, I just wanted to confirm that is a correct example to adjust brightness using the petitometer as it seems it may be flawed.

Side note on https://learn.adafruit.com/lightpaint-c ... paintbrush. This picture and labeling of the CPX is different than mine. For instance, you have the yellow wire going to #10. My CPX has no #10, the same connector on mine based on the picture is labeled A3. I did not know if this is supposed to be showing something different or not.

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: Adafruit 006 issues with tutorials

Post by johnpark »

Hi, thanks for the clarifications. From the error you're getting (thanks for posting it), it looks like you may have some older libraries left in your lib directory that are conflicting with the release ones. I followed the steps and links you listed and had no errors -- but I had no existing lib folder when I started. Is it possible if you downloaded the new release libraries and copied them into the lib folder but there were already some existing libraries in there? If so, there may have been some we no longer include that are in conflict.

Try deleting the entire lib folder on your Circuit Playground Express, and then re-copy the release set, folder and all, from your unzipped download.

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: Adafruit 006 issues with tutorials

Post by johnpark »

Regarding you question about the Light Paintbrush tutorial, there is a note on the build page that says:
If you made the Circuit Playground Express version of the Light Paintbrush with MakeCode, you will use the buttons for brightness instead of the added potentiometer.
The potentiometer is used with the Arduino version, while the built-in the buttons are used on the MakeCode version. This is to make the CPX/MakeCode version of the tutorial simpler and to require no additional parts beyond the board and USB or battery power.

The images and build instructions are for the Circuit Playground Classic, which is why you see pin #10 referenced, which is not on the Circuit Playground Express.

Thank you for pointing these things out, I've updated the guide to better clarify which elements of it are for Circuit Playground Express and which are for Circuit Playground Classic.

User avatar
scavmartin
 
Posts: 6
Joined: Fri Feb 16, 2018 3:43 pm

Re: Adafruit 006 issues with tutorials

Post by scavmartin »

Everytime I start, I delete the entire contents of the drive. During that run I deleted everything but the boot_out file. That lib was a fresh copy from a fresh extraction of a fresh download I used nothing left over. I did it three times, same result every time. Also the same result from every lib I try. Note I never have an issue with any lib's using the basic test code. This is also the same error I get with every lib (I think one might show something different). I am not doing anything special or odd. I am running this from a kali persistent boot usb stick and everything else seems to work without issue. I agree it looks like a library problem but I am not a python guy and it is saying the adafruit libraries. It is very odd it is working for you though. Any thoughts on why this would occur considering the lib is a fresh copy and none existed before?

Thank you for the note on the lightbrush, I missed that!

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: Adafruit 006 issues with tutorials

Post by johnpark »

That's mysterious. Sounds like you're doing all the right things. Any chance you have another Circuit Playground Express you can try this on?

For the board you've been using, I think it may be worth erasing the flash on a deeper level, as shown here:

https://learn.adafruit.com/welcome-to-c ... ive-issues

Try that and let us know if that resolves the library conflict issues.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit 006 issues with tutorials

Post by adafruit2 »

Code: Select all

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
  File "main.py", line 29, in <module>
  File "adafruit_circuitplayground/express.py", line 232, in acceleration
  File "adafruit_lis3dh.py", line 129, in acceleration
  File "adafruit_lis3dh.py", line 115, in range
  File "adafruit_lis3dh.py", line 266, in _read_register_byte
  File "adafruit_lis3dh.py", line 294, in _read_register
  File "adafruit_lis3dh.py", line 293, in _read_register
  File "adafruit_bus_device/i2c_device.py", line 86, in readinto
KeyboardInterrupt: 
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
this isnt en error, you hit Control-C to soft-reboot, and the main.py reloaded automatically

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

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”