GLOBAL SITE AUSTRALIAN SITE

Trouble with loops | EdBlocks programming | Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic3
Trouble with loops
January 7, 2018
9:11 am
Avatar
John
New Member
Members
Forum Posts: 1
Member Since:
January 7, 2018
sp_UserOfflineSmall Offline

I started with the obstacle detect example, and it wouldn’t work – it would run forward until it detected something and just abort program (played the “I’m ready” beeps).

So I modified the script to be a little more “literal”:

Image Enlarger

This works – and loops OK until it hits something, then breaks out of the loop and runs the backwards and turn, and stops. The notes were there to debug where it was up to.

If I want to repeat this however, it just drops out after the first obstacle and does it’s “I’m ready” beeps.

Image Enlarger

Why wouldn’t this work? In fact why wouldn’t the example work? I find that even to get my working program to actually work I have to remove batteries and start from scratch. Apparently it’s running the appropriate firmware (2.0). It’s rather frustrating explaining this to my daughter, and we’re left with running silly trivial examples only…

Any help appreciated. Thanks.

January 8, 2018
9:55 am
Ben
Admin
Forum Posts: 179
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

Hi

The “I’m ready” beeps mean that Edison is resetting.

This typically happens when Edison’s batteries are running a little low and there is a fast change of direction in the motors. If you keep using the Edison and the batteries go too flat Edison will start resetting instead of driving.

Your code should work fine, please replace the batteries with new alkaline-based disposable batteries or freshly charged nickel metal hydride rechargeable batteries.

If you continue to experience difficulty after replacing the batteries please send us an email via our contact us form:  https://meetedison.com/edison-robot-support/contact-us/

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Country

Pin It on Pinterest

Share This