GLOBAL SITE AUSTRALIAN SITE

Line Tracker and Obstacle Detection together | EdScratch 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
Line Tracker and Obstacle Detection together
October 18, 2018
8:57 am
Anton
Member
Members
Forum Posts: 3
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline

Hi

Has anyone got an example of an edscratch program that uses Line Tracker and Obstacle Detection. I want the robot to stay within a border and avoid obstacles within that border.

Thanks

Anton

October 19, 2018
6:12 am
Anton
Member
Members
Forum Posts: 3
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline

This shared code was an initial attempt which works to a certain extend. The only problem is that the robot does a double spin after detecting and object - the variable was an attempt to address that.

https://www.edscratchapp.com?share=20VmlwY8

October 19, 2018
1:22 pm
Isaac Nelson
Admin
Forum Posts: 27
Member Since:
March 16, 2018
sp_UserOfflineSmall Offline

Hi Anton,

I suggest having a look at the Bounce_in_borders demo and the Avoid_obstacles demo available in the menu section. This will show you how the two separate sensors work. My suggestion would be to structure it like the Bounce_in_borders program. And then have an event for the obstacle detect. Within the event structure that like the Avoid_obstacles demo. 

October 24, 2018
11:00 am
Anton
Member
Members
Forum Posts: 3
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline

Thanks Isaac,

I tweaked the code and have Ed doing its thing 🙂

Works well.

Here is the next iteration of the code to make the robot detect lines and obstacles.

https://www.edscratchapp.com?share=QbOZ7J0k

Cheers

Anton 

  • 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