element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum MakeCode Errors When Coding Sensors for Mi: Node
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 278 subscribers
  • Views 986 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

MakeCode Errors When Coding Sensors for Mi: Node

pcnabhani
pcnabhani over 2 years ago

I am a beginner with the Mi:node and Micro:bit. When using MakeCode I only get error message 927 when coding for Mi:node (V.1) for Micro:bit (V.2). When Mi:node is unplugged from the Micro:bit, MakeCode works for simple coding for Micro:bit. I need to get the Mi:node sensors to work for my son’s STEM project. Any help would be greatly appreciated.

   

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 2 years ago +1
    There's not enough information, can you insert screenshots of what you're doing and a screenshot of the error message that you see? You might also need to insert a photo or two (high quality, well-lit…
  • pcnabhani
    pcnabhani over 2 years ago in reply to pcnabhani +1
    I tried to upload everything as PDFs, which were very clear, but they did not appear to come through. I then did them as PNGs. My son then put in the code in python via "insert code". I apologize for the…
  • pcnabhani
    pcnabhani over 2 years ago in reply to shabaz +1
    Thank you very much. I did upgrade the firmware on the Micro:bit. I did not think that there was any on the Mi:node, but am checking into that. (It appeared that it was an accessory to the Micro:bit without…
  • shabaz
    0 shabaz over 2 years ago

    There's not enough information, can you insert screenshots of what you're doing and a screenshot of the error message that you see? You might also need to insert a photo or two (high quality, well-lit) of the setup.

    You can use the Insert->Image/Video File menu option to insert a screenshot (.png or .jpg file for instance).

    If there is any code, then use Insert->Code so that it is formatted well.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pcnabhani
    0 pcnabhani over 2 years ago

    Thank you for the quick response. I will be putting it all together and forwarding as soon as possible.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pcnabhani
    0 pcnabhani over 2 years ago in reply to pcnabhani

    imageI tried to upload everything as PDFs, which were very clear, but they did not appear to come through. I then did them as PNGs. My son then put in the code in python via "insert code". I apologize for the formatting errors in this communication. I am used to straight emails.

    def on_light_sensor_analog_a1():
        minode.rgb_set_color(ConnName.D13, 255, 255, 255)
    minode.on_light_sensor_event(AnalogConnName.ANALOG_A1, on_light_sensor_a1)
    
    imageimageimageimageimage

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pcnabhani
    0 pcnabhani over 2 years ago

    imageimage

    These are Jpeg attachments of what I tried to attach last night.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 2 years ago

    I don't know the answer, but it looks like a version inconsistency for sure.

    Some other info here: https://forums.pimoroni.com/t/scroll-bit-and-inky-bit-927-error/15655

    You could try coding something else (e.g. not use the minode.rgb_set_color for instance)  to identify if its just certain operations that cause the error. In other words, the 927 error might disappear if you avoid using one or two features of the board.

    Even if you need the RGB light, just as an initial quick experiment, remove that and see if the error still occurs. If it still occurs, then put it back and remove the light sensor function, and reattempt. Just to see what precisely causes it.

     Other than that, I can't think of what else to try with the hardware that you have. I presume you have upgraded any firmware on the board(s)?

    You might need to reach out to the help on the Microbit website in case it is something they can fix in their coding environment.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • pcnabhani
    0 pcnabhani over 2 years ago in reply to shabaz

    Thank you very much. I did upgrade the firmware on the Micro:bit. I did not think that there was any on the Mi:node, but am checking into that. (It appeared that it was an accessory to the Micro:bit without any firmware of its own.) We couldn't get the Mi:node light sensor to work without the RGB light, when we tried to just have the LEDs light up for the Mi:node light sensor. We will look into these other suggestions. Thanks again. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube