Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

6.3.0 crickit problem
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

6.3.0 crickit problem

by htmagic on Sat Jun 05, 2021 6:21 pm

OK,

I downloaded the latest CP 6.3.0 and now I get the following errors from Mu.
Traceback (most recent call last):
File "code.py", line 7, in <module>
File "adafruit_crickit.py", line 60, in <module>
ImportError: no module named 'adafruit_seesaw'

Code done running.

I have the code posted. I've been having problems with the servos not centering after the subroutine.
Then CircuitPython quit running at all.
I reinstalled CircuitPython on my CircuitPlayground Express/Crickit board and even flashed the Crickit board again.
I know the remote is working as I see the light blick on the receiver every time I click the remote.
I think the CPX is running because I uploaded a basic Blinka code and the red LED blinked on the board.
So I'm stumped and not sure why this isn't working.
Help!
And thanks in advance for your review and response to my issue.
May the FORCE be with you and have a magical day!

MagicBill
Attachments
code.py
(4.96 KiB) Downloaded 2 times

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Sat Jun 05, 2021 9:18 pm

[post split into its own thread]

Were you using the special cpx crickit built before? This special build for CPX + Crickit has adafruit_seesaw built in:
https://circuitpython.org/board/circuit ... s_crickit/

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Mon Jun 07, 2021 12:30 pm

Dan,

Thank you for your response. Yes, I had this some time ago and had to assemble the CPX onto the Crickit.
It worked before and then stopped working when I put the V 6.3.0 CircuitPython onto the CPX board.
I even tried to redownload the latest Crickit seesaw program onto the board and no luck.
I'd like to wipe everything and start fresh if I could.
I know there is an efuse on Crickit but I used a 5 VDC plug in supply.
https://www.adafruit.com/product/276

I'm at a loss why this thing doesn't work anymore. When it was working, I think I filled the memory to the max woth the sound files, etc. but the 4 channel remote worked with it.
The only bug I was trying to chase down was that the servo for the eyes did not center, even though I had a statement to center the servo:
Code: Select all | TOGGLE FULL SIZE
eye_servo.angle = 90


I would like to get the program working again and will try to wipe everything and install fresh again.
I was using an earlier CircuitPython version and maybe I'll go back to it.

Any suggestions for what to look for would be appreciated.
Thanks in advance.
May the FORCE be with you and have a magical day!

MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Mon Jun 07, 2021 12:39 pm

What is the name of the .uf2 CircuitPython file you are using now, and do you know the name of the previous .uf2?

The link I gave above is a special version that include adafruit_cricket as built-in. Try that one.

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Mon Jun 07, 2021 1:26 pm

Dan,

The link you ave is the latest stable release of CircuitPython that will work with the Circuit Playground Express + Crickit.
https://downloads.circuitpython.org/bin/circuitplayground_express_crickit/en_US/adafruit-circuitpython-circuitplayground_express_crickit-en_US-6.3.0.uf2

The version I was using before I downloaded last year. I think it was CircuitPython 4.X.X (not toally sure).
https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/download/20200707/adafruit-circuitpython-bundle-4.x-mpy-20200707.zip
I was reviewing the troubleshooting section and just learned there is a way to erase and reformat for a newer version of CircuitPython.
https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting
I will have to try theis when I get home and play with the board. I did not do that when I updated the new system.
Also, I would prefer to have the .mpy files instead of .py files are they are smaller and I'm right at the limit of the flash on the board.
I was able to do that in the earlier version without too much problem. Upgrading to the latest appeared to give me fits.

Also, when I drag the files onto the CPX, do I add the adafruit_crickit directory onto the /libs folder on the D: drive? And again, I don't need or want all the files in this library, just the ones that will work with the aduioio, servo, motor, and neopixel.mpy files.

Thanks again for working with me on this. This has been somewhat frustrating through this learning process but the Adafruit forum and support is a clear winner and I do not believe I could get other hardware from other companies to work half as well without the support Adafruit has provided me.
May the FORCE be with you and have a magical day!

MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Mon Jun 07, 2021 4:57 pm

The special CPX + crickit build I mentioned above has the libraries below "frozen" in as .mpy, so you don't need to add them to `/lib`. If your code is not working, open a serial connection to the board with Mu or Putty or Tera Term (see here

Adafruit_CircuitPython_CircuitPlayground (adafruit_circuitplayground)
Adafruit_CircuitPython_Crickit (adafruit_crickit)
Adafruit_CircuitPython_LIS3DH (adafruit_lis3dh)
Adafruit_CircuitPython_Motor (adafruit_motor)
Adafruit_CircuitPython_NeoPixel (neopixel)
Adafruit_CircuitPython_seesaw (adafruit_seesaw)
dafruit_CircuitPython_Thermistor (adafruit_thermistor)

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Mon Jun 07, 2021 6:37 pm

Dan,

I am using Mu hat I downloaded to my laptop last year.
I hadn't had to upgrade.
The error I originally posted from from the Serial window on REPL.

I ran a Blinka prgram on the CPX/Crickit board and had the red LED on the CPX blinking red as it was supposed to.
Not sure why everything stopped on this board. So under the /libs folder on the D: drive, is there anything that should be added there?

Thank you,
MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Fri Jun 11, 2021 11:01 am

Sorry, this slipped by in my email.

The special Crickit build of CircuitPython should include all or nearly all of the libraries you need, including adafruit_seesaw. But we need to see what's not working. Connect to the REPL and just do:
Code: Select all | TOGGLE FULL SIZE
>>> import adafruit_seesaw


If that works, then start code.py with a control-D, and give me the complete transcript.

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Sun Jun 13, 2021 12:11 am

I finally got home and had a chance to do what you stated.
Here are the results:

Adafruit CircuitPython 6.3.0 on 2021-06-01; Adafruit CircuitPlayground Express with samd21g18
>>>

So apparently I do have v 6.3.0 but it still doesn't work.
What's up?
May the FORCE be with you and have a magical day!

MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Sun Jun 13, 2021 10:32 am

Download the version from this page, which is a special build for use with the Crickit. It includes `adafruit_crickit`, the motor library, etc.

https://circuitpython.org/board/circuit ... s_crickit/

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Sun Jun 13, 2021 2:26 pm

Dan,

Where do I download it, on the CPX or Crickit board itself?
Thanks,
May the FORCE be with you and have a magical day!

MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Re: 6.3.0 crickit problem

by danhalbert on Sun Jun 13, 2021 3:04 pm

It is a special build of CircuitPython, so copy it to CPLAYBOOT on the CPX.

danhalbert
 
Posts: 2430
Joined: Tue Aug 08, 2017 12:37 pm

Re: 6.3.0 crickit problem

by htmagic on Sun Jun 13, 2021 5:57 pm

Dan,

I reread your post.
I went to the link and tried to download v. 6.3.0 of the UF2 file to the CPX board after I put it in boot mode.
It wouldn't load as it was too big (memopry full).
So I copied everything on the CPX to a dump file including code.py.
I erased everything and redid. This time UF2 was copied.
Then I tried to copy the dump file including the /lib and /.fseventsd folders.
Not enough file space. So I deleted everything off CPX, put in CPXPLAYBOOT and dragged the UF2 file over.
Then I copied from the dump file everything except the /lib and /.fseventsd folders.
This time everything copied over.

Then I got in REPL mode and typed
Code: Select all | TOGGLE FULL SIZE
>>> import adafruit_seesaw

I get the following:
Code: Select all | TOGGLE FULL SIZE
>>> import adafruit_seesaw
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: no module named 'adafruit_seesaw'
>>>

So now what?

Thanks,
May the FORCE be with you and have a magical day!

MagicBill

htmagic
 
Posts: 79
Joined: Tue Dec 03, 2013 12:18 am

Please be positive and constructive with your questions and comments.