Hi, I have been trying to use the Mu editor to work on a project using stepper motors. I have tried a lot of things but I have not been able to get Mu to recognize my board, a ESP32 Feather V2 - 8MB Flash + 2 MB PSRAM - STEMMA QT.
Through messages with the forum, it sounds like Mu recognizes boards with another type of USB interface than the one I have. I didn't actually know there were different types of interfaces before I started to try to connect it.
Would it be possible to exchange my board for an S2 board, such as https://www.adafruit.com/product/5000? It sounds like this product would be recognized by the Mu editor, and would help get me going.
I have already soldered pins to the V2 for connection to the wing, but I thought I would check anyway.
Thank you for considering my request.
P.S. Just fyi, I am able to get the stepper going through the "examples" in Arduino, so all the connections are functioning (pins, USB cable). I was just hoping to do this with CircuitPython using Mu, rather than Arduino.
V2 Feather Exchange/Refund
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: V2 Feather Exchange/Refund
When did you purchase the controller?
Adafruit has a warranty, but in this case the Feather v2 is working so it may not apply.
Adafruit has a warranty, but in this case the Feather v2 is working so it may not apply.
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
Purchased on 10/28/22.
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: V2 Feather Exchange/Refund
You can ask [email protected] if a refund would be okay. Provide this forum link so they can see we discussed the issue here.
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
Thanks. I have been trying one more thing to try to make this work - the web-based system you referred to in another posting. I believe I have been able to connect the controller via usb. I am using the editor on code.circuitpython.org. It offered a connection choice of WiFi, Bluetooth, or USB and I chose USB.
At the top of the Serial screen it says: WiFi:off|REPL|8.0.0-beta.4
When I try to run a basic stepper motor code, I am getting the following in the Serial screen:
>>>import code (38)
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
I am wondering if I am getting close on the communication between the controller and python and if I have to just change something small. If I am making progress I'll hold off on requesting the refund. Thanks for any help.
At the top of the Serial screen it says: WiFi:off|REPL|8.0.0-beta.4
When I try to run a basic stepper motor code, I am getting the following in the Serial screen:
>>>import code (38)
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
I am wondering if I am getting close on the communication between the controller and python and if I have to just change something small. If I am making progress I'll hold off on requesting the refund. Thanks for any help.
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
Just fyi, "code(38)" is just the name of the py code file.
the first two line of code are:
import time
import board
the first two line of code are:
import time
import board
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: V2 Feather Exchange/Refund
Try renaming the code(38) file to something else with only characters and numbers. I'm not sure how those parenthesis are working for parsing loading.
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
I have tried a few things but each time I press Save+Run in the Editor tab, the program adds a parenthesis and a number after the file (even if if the name is brand new).
I have been using the following code as a test.
import board
help("modules")
I think I might be close on getting this to work. In the Serial tab, I now get all the details about the board. Also, the Restart button in the Serial tab restarts the physical board, and the board's physical reset button changes the Serial screen. When I Save + Run, I do not get any output in Serial, but the board's LED turns solid blue. In short, there seems to be a good connection but I can't get any code to run.
I have been using the following code as a test.
import board
help("modules")
I think I might be close on getting this to work. In the Serial tab, I now get all the details about the board. Also, the Restart button in the Serial tab restarts the physical board, and the board's physical reset button changes the Serial screen. When I Save + Run, I do not get any output in Serial, but the board's LED turns solid blue. In short, there seems to be a good connection but I can't get any code to run.
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: V2 Feather Exchange/Refund
parenthesis having meaning in python so you will not be able use syntax like. Normally the syntax of parenthesis means to import specific functions from a library module.
As long as your code has a normal name like code.py you can manually run the import.
Can you post the code you are trying to run?
Code: Select all
import code(38)
Code: Select all
import code
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
Thank you for getting back to me, and for the explanation about how parenthesis are interpreted.
I actually do not have any specific code right now. Do you have something simple which I could use to see if it runs?
Maybe something that would have an output in the serial window? I was able to run some test sketches when I was using the Arduino IDE (led flashing, etc).
I am quite new at this, and I really appreciate your help.
I actually do not have any specific code right now. Do you have something simple which I could use to see if it runs?
Maybe something that would have an output in the serial window? I was able to run some test sketches when I was using the Arduino IDE (led flashing, etc).
I am quite new at this, and I really appreciate your help.
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: V2 Feather Exchange/Refund
Sure, lets try turning on the NeoPixel LED.
https://learn.adafruit.com/circuitpytho ... py-3124728
Code: Select all
import time
import board
import neopixel
pixels = neopixel.NeoPixel(board.NEOPIXEL, 1)
while True:
pixels.fill(0xADAF00)
time.sleep(1)
pixels.fill(0)
time.sleep(1)
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
Thanks very much for this. I tried it out but I do not think it worked. I am going to copy the editor screen to show you what happens when I press the Save+Run button. I named the file pycodetest.py. It opened up this in a Wordpad document and a duplicate file called pycodetest(2).py. This duplication (with a number in parenthesis) happens each time I press Save+Run. Attached are pictures of the Editor and Serial tabs to show you what I am looking at. Interestingly, when I run the code, the Led turns solid light blue. To turn this off I click the board reset button and it goes back to intermittent green flash. I guess there is some communication going on.
- Attachments
-
- Screen2.jpg (119.61 KiB) Viewed 110 times
-
- Screen1.jpg (141.38 KiB) Viewed 110 times
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
I was double checking the code and saw I made a spacing and case ("TRUE") error. I fixed these. Not sure if it matters in python or not. Ran it, but same result. Attached is the updated screen picture.
- Attachments
-
- Screen3.jpg (99.82 KiB) Viewed 110 times
- forum_questions_1
- Posts: 111
- Joined: Tue Oct 25, 2022 4:05 pm
Re: V2 Feather Exchange/Refund
I think I am going to close-up my attempts with this for now. I bought the S3 board and it is working well with Mu. Thanks.
Please be positive and constructive with your questions and comments.