• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Learn Raspberry Pi Pico/Pico W with MicroPython

Q&A Forum › Category: Raspberry Pi › Learn Raspberry Pi Pico/Pico W with MicroPython
0 Vote Up Vote Down
Thorkild Jakobsen asked 1 year ago

 
ca’nt run the test in the course, get this all the time:
Name “machine” is not defined [name-defined]

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Did you follow all the steps in the ebook?
do you have Thonny IDE connected to the board?
Make sure you have installed micro python on the board and that it is establishing a connection with it.
at which page of the ebook are you at?
 
Regards.
Sara

0 Vote Up Vote Down
Thorkild Jakobsen answered 1 year ago

I got rid of the error by rebooting, but when i try to run “2_3_blinking_led.py” on page 60, nothings happens.
In the shell window, I get this:
>>> %Run -c $EDITOR_CONTENT
MPY: soft reboot
>>>
My HW is RP2040 Pico W-2023.

The LED is on all the time, also when i do this:

MicroPython v1.22.2 on 2024-02-22; Raspberry Pi Pico W with RP2040
Type “help()” for more information.
>>> print(‘Hello’)
Hello
>>> from machine import Pin
>>> led = Pin(‘LED’, Pin.OUT)
>>> led.value(0)
>>>

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Do you have any peripherals connected to your Raspberry Pi Pico?
Are you sure your Raspberry Pi Pico is a W?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.