All Booklet - moodle.tendring-t

advertisement
Contents:
Section 1 – Competition Rules
Section 2 – Introduction
Section 3 – Buggy Changes
Section 4 – Research
Section 5 – Tuning
Section 6 – Evaluation
Section 7 –
Section 8 –
Section 9 –
Section 10 –
Section 11 –
Section 12 –
Brief:
I was briefed to come up with a program which is compatible with a Pic
One buggy that has the capability of reaching the 2x2 section in the middle of a
16x16 maze. The Pic One buggy was originally designed in 2007 to compete in
the micromouse maze-solving competition and went on to win the best
engineered mouse in the UK.
Micromouse?
Micromouse is a competition where small robots, “mice,” compete
against one another in a race to solve a maze. This maze consists of 18cm
square cells with walls 5cm high, spread out across a 16x16 grid. The mice
must find their way from the starting cell into the finish (2x2 area), navigating
through the combinations of walls build to confuse your buggy. As the mice go
through the maze they are simultaneously plotting the walls that they see in
the maze solving chips electronically erasable programmable read only
memory (EEPROM). It does this because the buggy does the maze twice, the
first time to check every route plotting the walls it sees, the second to execute
the fastest possible route.
Television remote – The biggest change that’s been made to the buggy is the
addition of a TV remote, this has been useful in many ways, the first being that
using it’s arrow keys I am able to force the buggy to go in that direction
without having to construct a maze that consists of each move/turn. Instead I
can sit there with a TV remote and check the turn value from where I program,
this makes the whole process of programming far more quick and efficient.
Batteries – Personally I’ve found that the second best improvement that’s
been made is the additional lines of programming which state whether or not
the buggy will be able to run at maximum capacity with the battery that it’s
currently got in it. These lines of code have been put in at the top of the
program so that as soon as you turn it on it checks for “bad battery.”
Another change that has been made to the battery is that a new set of
batteries have been bought as the old set weren’t providing a constant rate of
power. Therefore the tuning values were never the same, I checked the
voltage of the batteries every time but it always said they were good. However
the buggy’s values were still differing, but I tested values without the motors
running. With the motors running the output voltage of the battery was only
6v. The reason for this difference was based upon the internal resistance, with
a higher internal resistance; the output voltage while motors are running is
lower. Before I found this out I continued to change the values, so I never
stopped tuning.
LED Changes – In the program many lines of code have been added to allow
the LED’s to show the user if the values of the sensors are close/near to the
walls. They also tell you if the battery that’s currently in the buggy has an
active voltage (Internal resistance) that will be able to allow the buggy to run
at its maximum capacity. If the active voltage isn’t met then the LED’s flash in
sequence to show that the battery is bad.
Pic Chip Changes – The buggies 18x chip has been changed to a 18M2 to
increase its processing speed. Obviously in doing this, many lines of code had
to have been changed to make it compatible with the 18M2 chip. However the
outcome is that it now the buggies overall speed has increased.
Aesthetics - A few minor aesthetic changes have been made, like the addition
of bumpers on the front. These are one of the most vital additions to the buggy
as before the bumpers were implemented, during testing the buggy may hit
the front of the wall, then all the careful calibration of the sensors would’ve
needed to be changed.
Start Button – The buggies start button coding has been changed so that now
not only does pressing the start button begin the program, different
combinations of presses can be done so that the buggy runs different sets of
programs before the main program.
If before you run the main program, you press the start button twice
then the buggies current sensor values get changed to the values that are
currently being read by the buggy. The main reason we added this was
because in the competition the walls may have a different level of reflectivity,
meaning that the value that would be read by the sensors would be far off as
there would be light going back into the receiver.
The completion of this task would’ve been impossible without vast
amounts of research on the topic. The buggies motors and sensors was the
biggest focus when researching. Designer’s manuals had to be constantly
referred to as it was in here that the test programs were found. From these
test programs I was told to deduce the way the buggy controls the sensors and
motors as I was previously unfamiliar with the 28x1 chip. Once I found all this
information out I created a program that got the buggy to move and sense the
walls. From there I continuously expanded on the program until it was able to
complete the maze.
In doing all this research I’ve acquired many new programming abilities,
such as the knowledge of what EEPROM (Electronically Erasable Programmable
Read Only Memory) is and how to take what it stores and see it as a series of
dashes that show the direction it decided to take. Using this you are able to get
a map of every possible route the buggy took. This is what it uses to do the
second run as fast as possible (finding the most direct route).
Some of the research that’s been done has been on the buggies chips
and how they are programmed and the difference between an 18x chip and an
18M2 and how you can use the same code by changing only a few lines.
Tuning – Tuning has been the most time consuming process that I’ve ever
done, however it is arguably the most important stage of the whole project.
The main reason why I spent so much time tuning the buggy is; for the buggy
to make precise turns, careful calibration must be done to the buggies values.
Every aspect of tuning is crucial to the functionality of the buggy, everything
from the angle at which it turns, to the distance it goes forwards before
turning. During tuning you must always be aware of the consiquences of you
actions, you must also be aware of the effect this has on the whole program.
E.g.
If you change the distance it goes forwards before turn then you have to
change the distance you go forward during the turn, if you change the distance
you go forward during the turn then you have to change the distance it goes
forward after the turn, if you change the distance it goes forwards after the
turn then you have to change the distance it goes forwards before you begin
sensing for the next turn, if you change the distance it goes before you begin
sensing for the next turn then you have to change......
I’ve completed the brief as the buggy can complete the maze both ways,
the route where it checks everything and the most direct route. It does so in no
winning speed however it carefully plots every turn in its EEPROM.
battery feed to motors, wheel size (less accurate),
Improvements:
A possible improvement that is still to be made is to change the 28x1
chip to a 28x2 chip; in the end the aim would’ve been to put all of the lines of
code on one chip. This would dramatically increase the speed of decision
making of the buggy. It would change it so that instead of stopping and
checking, it would be near seamless going through the corridor. In some cases
it would be possible for the buggy to realise the circumstance that it’s in and
move accordingly.
Another improvement
Copy file to...
Dropbox
Camera Uploads
Programming
Toyota2014 (1)


Upgrade account

0

Notifications


Cameron Peacock shared RoboPanda with you.

January 20


You joined the shared folder Toyota2014.

January 20


Cameron Peacock shared Panda with you.

January 13


Cameron Peacock shared Attack On Titan with you.

January 13


Cameron Peacock shared Toyota2014 with you.

January 13


We'll let you know when we've got something new for you!


Michael Linwood


Michael Linwood

Add account photo
o
michae…d2001@gmail.com
o
401.5 MB of 3 GB used
o
o
o
o
Settings
Install
Upgrade
Sign out


Files


Photos


Sharing0


Links


Events


File requests


Get Started1

Also from Dropbox


Carousel



Mailbox

Collaborate safely with Dropbox for Business!

Try it free


Help
Privacy

o
o
o
o
o
o
o
o
o
o
Install
Mobile
Blog
Jobs
Developers
Contact us
Pricing
Copyright
Business
Language
Choose a language











Bahasa Indonesia
Bahasa Malaysia
Dansk
Deutsch
English
Español (España)
Español (Latinoamérica)
Français
Italiano
Nederlands
Norsk (bokmål)
Chelmsford Diagrams

Toyota2014 (1)

Dropbox
Search




Advanced search










Polski
Português (Brasil)
Pусский
Svenska
Українська [Beta]
ไทย
中文(简体)
中文(繁體)
日本語
한국어
All of these words
Any of these words
The exact phrase
None of these words
Files
Folders
Deleted items
Search
Settings
Toyota2014 (1)•10 members
TC
ML
JP
EM
sc
JA
RW
CP
C

Name
No available actions
Kind
Location
Modified
Shared with
Search all of my Dropbox instead
1.
DSCN7606.JPG
2. 71.61 KB
3. 2 hrs ago John Share
4. -5. Send Get Link
6. Share
7.
8.
fig2.JPG
9. 5.81 KB
10. 30/4/2015 2:57 PM John Share
11. -12. Send Get Link
13. Share
14.
15.
LR_straighten.JPG
16. 8.70 KB
17. 15/3/2015 11:19 AM John Share
18. -19. Send Get Link
20. Share
21.
22.
maze9-3-15.GIF
23. 8.33 KB
24. 12/3/2015 2:03 PM John Share
25. -26. Send Get Link
27. Share
28.
29.
MAZES.bmp
30. 399.29 KB
31. 11/12/2014 2:21 PM John Share
32. -33. Send Get Link
34. Share
35.
36.
Oring Bits.GIF
37. 3.69 KB
38. 17/6/2015 2:10 PM John Share
39. -40. Send Get Link
41. Share
42.
43.
Printout.docx
44. 139.48 KB
45. Yesterday 6:56 PM John Share
46. -47. Send Get Link
48. Share
49.
50.
record maze.JPG
51. 44.22 KB
52. 29/1/2015 4:58 PM John Share
53. -54. Send Get Link
55. Share
56.
57.
stair2.JPG
58. 4.22 KB
59. 12/3/2015 2:41 PM John Share
60. -61. Send Get Link
62. Share
63.
64.
stair3.JPG
65. 4.16 KB
66. 12/3/2015 2:42 PM John Share
67. -68. Send Get Link
69. Share
70.
71.
supercombdiag.JPG
72. 13.36 KB
73. 5/2/2015 11:26 AM John Share
74. -75. Send Get Link
76. Share
77.
78.
tuning diagram.GIF
79. 8.55 KB
80. 29/1/2015 10:09 AM John Share
81. -82. Send Get Link
83. Share
84.
85.
Wham bit patterns-1.GIF
86. 4.96 KB
87. 6/11/2014 6:39 PM John Share
88. -89. Send Get Link
90. Share
91.
92.
Wham Tuning results 8-12-2014.JPG
93. 79.78 KB
94. 15/12/2014 4:27 PM John Share
95. -96. Send Get Link
97. Share
98.
99.
Wham Turbo Box.JPG
100.
14.55 KB
101.
15/12/2014 3:44 PM John Share
102.
--
103.
Send Get Link
104.
Share
105.
106.
Wham Volts vs PWM.JPG
107.
31.74 KB
108.
20/6/2015 5:08 PM John Share
109.
--
110.
Send Get Link
111.
Share
112.
This folder is empty
Drag and drop files onto this window to upload
This team folder is empty
Everyone at None will automatically have access to anything
you put here. Drag and drop files onto this window to upload.
Please update your search and try again
Search all of my Dropbox instead
copy
move


Invite people to collaborate...
People can sync and edit


Send link...
People can view
0
1
Dropbox keyboard shortcuts












↑Select previous file (hold Shift shift to select range)
↓Select next file (hold Shift shift to select range)
ctrl + a⌘+ aSelect all files
escDeselect all files (and hide these instructions)
←Up a folder
/Search
→Open folder
enterDownload or open file
ctrl + c⌘+ cCopy selected file(s)
ctrl + v⌘+ vPaste selected file(s) into the current folder
F2Rename selected file
DeletedeleteDelete selected file(s)


ctrl + z⌘+ zUndo recent move/copy/rename/delete
?Show keyboard shortcuts
You can't upload files because you're out of space.
You can't upload files because you're out of space. Before you can upload to , you need to get more
space.
Before you can upload files, you need to get more space.
Choose a file to . The basic uploader can only upload one file at a time.
Uploading multiple files? Try our enhanced uploader.
This may take a while depending on the size of the file.
Drop your file to
Choose files to . You can select more than one file at a time.
Choose files to . You can select more than one file at a time. You can also drag and drop files
anywhere on this page to start uploading.
Having problems? Try the basic uploader.
Loading...
Having problems? Try the basic uploader.
tuning diagram.GIF
Download
Open▾
Share


Remove link


Download


Desktop


Open
·
Share Download
Open▾


Desktop


Open
Zoom out
Zoom in
Page up
Page down
Fullscreen
Print
CommentsOptions
Post a comment to start a discussion. @Mention someone to notify them.
ML
Write a comment
Comments will notify 1 person. Anyone who can view this file can comment.
Post
Share
Allow editors to manage membership of this folder
Invite members to this folder
can edit
can edit
can view
Upgrade to enable viewer permissions
Add a message
Verify your email by clicking
on the link we sent you.
Resend email or change email
address
Allow editors to manage membership of this file
Share folderCancel
Invite members to this file
can edit
can edit
can view
Upgrade to enable viewer permissions
Add a message
Verify your email by clicking
on the link we sent you.
Resend email or change email
address
Create a new folder
What is the name of your new folder?
New folder name
Who do you want to share this folder with? (optional)
Invite people
Create folderCancel
What would you like to do?


I'd like to create and share a new folder
I'd like to share an existing folder
Next
What is the name of your new shared folder?
New folder name
Back
Next
Set up a private group in your Dropbox.
Work on the same files together with a group of people.
Folder name...
Share fileCancel
Create my group
Add people to FOLDEREveryone in the group can add and edit files.
When someone updates a file everyone instantly sees the change.
Email address...
Email address (optional)
Email address (optional)
Send Invites
Your team is being created!
FOLDER created and invites sent!Add files for groups to see
Back
Next
How would you like to share?
Invite people to collaborate
Add or remove collaborators who can sync and
edit this folder
Learn more
Send link
Allow people to view this folder with the link
If you permanently remove this folder, it will no longer be viewable in your list of shared folders, and
you won't be able to rejoin it unless you're re-invited.
Permanently remove folderCancel
Are you sure you want to rejoin this shared folder?
Rejoin folderCancel
Are you sure you want to restore this app folder? The files inside of it will be restored, but will not be
available to any API apps.
Are you sure you want to uninvite from ' '?
UninviteCancel
After removing from this shared folder, they will no longer keep these files in sync with you and any
other collaborators.
should be able to keep a copy of these files
RemoveCancel
After removing from this shared folder, members of this group will no longer have access to these
files.
RemoveCancel
Only will be able to unshare this folder or change folder settings.
Make ownerCancel
Only will be able to unshare this folder or remove other members.
Make ownerCancel
You can rejoin this shared folder later if you change your mind.
I still want to keep my copy of these files.
Leave folderCancel
Nobody else will be able to sync this shared folder to their Dropboxes. You'll still keep a copy of this
shared folder in your Dropbox.
I want my collaborators to keep a copy of these files.
This folder will be removed from all other team members' Dropboxes. You'll still keep a copy of this
shared folder in your Dropbox.
Unshare folderCancel
Collaborate on this file by moving it into a shared folder
For to edit and sync this file, it needs to be in a shared folder. We’ll create this folder and move it
for you. Learn More.
Move file and share this folder now
No thanks, don’t share my file
This file is already inside of a shared folder
In order to share this file, you need to share the entire folder .
Share the entire folder now
No thanks, don’t share my folder
You can't share folders that are already in a shared folder. Do you want to share the ' ' folder
instead?
Shared folder invitations
Get notified when someone downloads or views your shared links.
Yes, I’m interested
Skip
Thanks for letting us know
This feature isn’t quite ready yet. Stay tuned!
We’re always looking for ways to make Dropbox better.
Done
Get the most out of Dropbox by installing it on your computer
The most recent version of will be restored.
View other versions
Invite others to collaborate with you in this folder.
Enter recipient email addresses here
Add a custom message
Shorten linkTo share this file with others, copy and paste this link:
<p class="center">The Dropbox website requires JavaScript.</p>
100%
Download