Escolar Documentos
Profissional Documentos
Cultura Documentos
Initial Brief
To design a GoPro mount that will allow aerial view from a
suspended height.
Introduction
After talking to Mr Crummer and Mr Storrie, who are teachers at
Glendowie College, we found out that there is potential need for a
device that records videos from an aerial perspective, due to the
lack of a reliable method of recording high quality footage of sports
matches held at Glendowie College from multiple angles, which is
what this GoPro aerial system would aim to achieve. Functions of
this aerial system could include recording HD footage of sports
matches held at GDC to be used in making videos of sports teams
and reviewing and analysing game performance to improve team strategies etc. They
mentioned that the device will be used in indoor and outdoor activities; new gym and outside
sports grounds such as the school field. We aim to design the system so that it functions in
any situation and will overcome any problems it faces while operating (such as wind or rain
outside, field of view indoors, danger of basketball hitting the mount)
Gym Measurements
Height - 8 metres
Length - 33.5 metres
Width - 20.25 metres
Initial specifications
The mount must be able to be remotely controlled.
Must be easy to setup and takedown.
Must be able to be easily stored.
Must have a constant stable speed.
The mount must be able to withstand water and fall damage, which could be
prevented by laying tumble mats underneath it
Stakeholders
Primary Stakeholder(s)
Mr Storrie head of the sports department. He needs this so that he can record footage of
sports matches in the new gym, for example basketball; the footage can then be used for
training purposes by analyzing replays and identifying weak/strong points etc. The audio
capture feature of the GoPro will also be useful in analysing communication between the
team.
Secondary Stakeholder(s)
Mr Tanner who has experience with GoPro cameras as he owns one, so he could use the
final product with his art purposes.
Wider Stakeholders
GDC Sports Department
Coaches - They will be using our project for training and for sports purposes
June Chin, Engineer, AECOM
Constraints
Time taken to print off 3D models/objects
Size of the plates for the 3D printer
Only have two available printers
Physical/Chemical properties of certain materials stops us from printing the
maximum available volume
Components takes time to fully function
Certain amount of time for this project each week
Etching machine may malfunction or have incorrect settings
Internet access may not always be available
Access to tools may be limited e.g they are being used by other people
Key Factors
Receptivity - Must be able to transmit and receive data, wirelessly, between the remote and
the GoPro camera throughout the span of the new gym so that we receive continuous live
feed.
Durability - Making sure that the mount is durable and not easily broken under various
environmental pressures/conditions
Portability - Lightweight and compact; with the goal in mind that it will be able to be
transported to different locations with ease.
Mobility - Having the ability of being able to move smoothly on the wire without having an
issue.
Reliability - Works well and does not have to go for maintenance. The mount does not break
so that our Primary Stakeholder does not have the issue of having to fix it himself which would
just waste his time.
Functionality - The mount must be fit for purpose and be able to function as intended.
Environmental Factors
Physical environment
Less likely to get hit Does not have a 360 Has 360 degree Can be easily hit by
degree recording recording balls
ability, only 180
Better angle for Can only record on Better angle for Easily visible by the
viewing posture one angle or side of positioning players and
the game spectators
Easily accessible Camera range Does not have focal Hard to access while
while a games active across the whole issues due to being game is active
in case of width of the gym, in the centre and incase of
emergencies e.g causing focal issues having equal widths emergencies e.g
camera on each side camera
malfunctioning malfunctioning
Does not cause any Causes ethical Does not cause any Causes ethical
ethical issues with issues with the ethical issues with issues with the
spectators e.g spectators e.g
layers e.g looking looking down girls looking down girls player e.g looking
down girls tops tops tops down girls tops
The whole system will be wall suspended in the air on a wire, which will be bolted into two
stable, free-standing, parallel objects (such as a wall or a pole/tree trunk). However when
the camera is not being used, the camera can be stored in the sports office so that students
do not mess with it.
Physical Issues
A ball could hit the mount. This has a chance of damaging the equipment and/or
disrupting the activity.
Social Environment
Since the mount will be active during sports matches/gym events, there is a priority for the
mount to be designed so that it doesnt hinder elements such as team performance during a
match.
Enough battery for live feedback
The GoPro project will need to be able to record the whole match from a certain height and
also have the ability to capture footage while rotating on its axis (enables recording from
different angles)
Legal Requirements - is there height stuff? yes , there is, such as regulations.
Safety - Every aspect of the GoPro project must not present any hazards to users or people
interacting with it during any situation.
Ethical Considerations - We need to make sure that the possibility of falling and injuring
someone has been reduced to the absolute minimum.
Sustainability - The mount will need to last a long time as it will be useless if it breaks
quickly
Social & Cultural - The design will not have a rude looking design and will not offend
anybody.
Justification of the need of this product:
After talking to Mr Crummer and Mr Storrie, who are teachers at Glendowie College, we
found out that there is potential need for a device that records videos from an aerial
perspective, due to the lack of a reliable method of recording high quality footage of sports
matches held at Glendowie College from multiple angles, which is what this GoPro aerial
system would aim to achieve. Functions of this aerial system could include recording HD
footage of sports matches held at GDC to be used in making videos of sports teams and
reviewing and analysing game performance to improve team strategies etc. He mentioned
that the device will be used in indoor and outdoor activities; new gym and the school field.
Research
Hardware
List of Components:
Servo
Wheel
3D Printer Plastic
Camera
Rope
Pulley
Radio Frequency Module
MicroSD
Battery pack
Ball Bearings
Servo(s)
Parallax Standard Servo - $12.99
This servo has the most basic features however every 180 degrees of rotation the servo will
have a slight pause before rotating again, this is not ideal for
the GoPro Camera project as we will need a smooth rotation.
Key Features:
Holds any position between 0 and 180 degrees
38 oz-in torque at 6V
Accepts four mounting screws
High precision gear made of the POM (polyacetal) resin
makes for smooth operation with no backlash
Weighs 44g
Key Features:
Bidirectional continuous rotation
0 to 50RPM, with linear response to PWM for easy ramping
Accepts four
mounting screws
Easy to interface with any Parallax microcontroller or
PWM-capable device
Easy to control with BASIC or SX/B PULSOUT commands
Weighs 42.5g
Key Features:
Approximately 180 degree movement
Weighs 8.8g
Torque: 1.2kg.cm at 4.8VDC : 1.4kg.cm at 6.0VD
High speed rotation may be needed in order to record sports that are fast paced and having
a continuous servo allows the rotation to rotate quickly and smoothly without having to
pause then rotate again.
Key Features:
Bidirectional continuous rotation, from 0 up to 180RPM
Linear response to pulse-width modification for easy ramping
6 to 8VDC input range is compatible with 5-cell AA battery
packs
Accepts four mounting screws
Access port for adjusting idle pulse width
Wheel(s)
Sava CBL-990 Steel Pulley Wheel - $7.78
http://www.amazon.com/Sava-CBL-990-Steel-Pulley-Diameter/dp/B002I03CS2/ref=sr_1_3?i
e=UTF8&qid=1402867848&sr=8-3&keywords=pulley+wheel
Pros Cons
http://www.shapeways.com/materials
http://blog.tinkercad.com/materialsguide/
http://www.bitsfrombytes.com/content/3d-printing-materials
http://bootsindustries.com/portfolio-item/importance-of-good-filament/
http://www.absplastic.eu/pla-vs-abs-plastic-pros-cons/
Camera(s)
GoPro Hero Series
HD Hero Original Hero 2 Hero3+
Professional/Surf White/Silver/Black
$230~$276.83 NZD Edition
$339.99~$599.99 NZD
*Note For Wi-Fi on Hero 1 and 2 you will need a BacPac remote control kit for the GoPro
to function properly with Wi-Fi. Hero 3 comes with Wi-Fi inside.
http://GoPro.com/camera-accessories/wi-fi-bacpac-remote-combo
$199.99
Viewing angle for GoPro
GoPro Hero2 has a viewing angle of 90 degrees - 170 degrees
Narrow: 90
Medium: 127
Wide: 170
There is no information online about the viewing angle and/or focal length of the GoPro
series. However im assuming that the Horizontal field of view is roughly the same as
previous models but the Vertical field of view may differ depending on what camera
ratio/resolution is used.
http://snapsort.com/cameras/GoPro-HD-Hero-2-specs
http://www.cnet.com/au/products/GoPro-hd-hero2/specs/
http://GoPro.com/product-comparison-hero3-cameras
http://GoPro.com/product-comparison-hd-hero2-hd-hero-cameras/
http://GoPro.com/support/articles/hero3-battery-life
Rope(s)
Polypropylene Laid Rope
Polypropylene laid rope has high resistance and is usually used for moving objects and
does not have a high amount of stretch.
http://search.mitre10.co.nz/search?p=Q&w=Polypropylene+rope
$0.73~$2.18 per metre
http://www.bunnings.co.nz/search/products?q=Polypropylene%20rope&redirectFrom=Any
$0.92~$3.68 per metre
Advantages/Characteristics
6 550
8 960
10 1425
12 2030
14 2790
Nylon Rope
This type of rope is not recommended for the GoPro project due to its high stretch up to
46%) which is a factor we are trying to avoid.
http://search.mitre10.co.nz/search?p=Q&w=Nylon+rope
$2.98~$6.98 per 15 metres
http://www.bunnings.co.nz/search/products?q=nylon%20rope&redirectFrom=Any
$0.92~$5.14 per metre
Advantages/Characteristics
High elasticity - stretches up to 46% before breaking.
Excellent shock absorption.
Medium abrasion and U.V resistance. (Slightly less resistance than polyester).
Sinks in water.
Strongest of all conventional synthetic ropes.
Use
Light and heavy tow ropes (possible because of excellent shock absorption).
Anchor and mooring ropes (because of high elasticity)
Usually identified with a Red or Green marker thread
6 750
8 1350
10 2080
12 3000
14 4100
Polyester Laid rope is a good all purpose rope due to its high resistance to most
chemicals (acidic and alkaline) and features low stretch.
http://search.mitre10.co.nz/search?p=Q&w=polyester+rope
Vary
http://www.bunnings.co.nz/search/products?q=Polyester%20rope
$2.13~$4.38 per metre
Advantages/Characteristics
Low stretch
High strength and high break load
Very high UV and abrasion resistance (superior to nylon)
Resistant to most chemicals - both acidic and alkaline
Non-floating
Usually identified with a blue marker thread
Uses
General purposes
Heavy towing
Running rigging-yachting sheets and halyards
Anchor warps and mooring lines
Extremely high resistance against most chemicals and has high breaking strength. This
means that the rope will less likely break after heavy usage with the project. The
thickness depends on the strength required to support the camera mount without
breaking.
Key Features
7 x 7 Wire rope
3mm total diameter
316 Grade Stainless Steel
Key Features
Pulley(s)
Advantages/Characteristics
The XBee PRO 60mW Wire Antenna fits our projects need as it
can transmit and receive up to 90m indoors which is more than
enough for covering up the gym for a stable transmission/reception
with a fast 2.4GHz frequency band.
Key Features
Outdoor range up to 1.6km
Indoor range up to 90m
Data rate up to 250Kbps
2.4GHz frequency band
Key Features
Superior outdoor line of sight range up to 45 km, 14 km using a dipole antenna
Indoor range up to 610m
RF Data rate up to 200Kbps
Key Features
Range up to 700m
433MHz frequency band
Key Features
2.1dBi
RPSMA Male Connector
Factory Part Number: A09-HSM-7
http://www.surplustronics.co.nz/products/5763-transceiver-433mhz-module-dorji-dr
f7020-d13-043a
Aerial 433 MHz 90 degree Antenna
This is another additional antenna that is required for the 433MHz Dorji
transceiver to function properly. Surplustronics does not have any
information
on the antenna apart from saying that it is 90 degrees angled and 100mm
long.
MicroSD Card
A MicroSD card is required for operation of the GoPro Hero 3+ Black Edition. The
minimum requirement is a Class 10 MicroSD card of at least 64GB capacity. For higher
quality videos recorded in 4K, 2.7K or ProTune modes, a higher speed MicroSD card is
required.
Dimensions: 15 x 11 x 1.0mm
Nickel-Metal Hydride Battery does not leak Does not have a long
(NiMH) Has a low discharge rate battery life
Good for high drain devices
The PE department already has AA battery chargers therefore it is better and cheaper for
us to choose Alkaline AA than purchasing other types of battery which may require
additional costs to use. It is easier to purchase rechargeable Alkaline AA batteries than
other types of battery types from local stores.
Battery Capacities in mAh
This table shows the amount of milliampere per hour for the different types of
rechargeable batteries. Having a larger mAh allows more cycles before it fully discharges
or needs to recharge.
Recharge cycles (Deep)
This recharge cycle table shows the estimated amount of cycles for the battery types
before the end of battery life where it becomes redundant meaning that new batteries will
need to be purchased to replace the previous batteries.
http://michaelbluejay.com/batteries/
http://www.greenbatteries.com/aa-and-aaa-battery-faq/
https://www.youtube.com/watch?v=RihQOUNsN9c&safe=active
Ball Bearing
Tapered or Spherical
Both roller/tapered and ball bearings have similar attributes however the only difference
between the two is that tapered has the capacity to carry heavier loads or weight than a
ball bearing.
Bearings Pros Cons
Since both of the types of bearings are relatively similar in terms of usability, the only
main difference between Tapered and Ball are the weight load that the Tapered can
support compared to Ball. However since our project does not require a lot of weight
support we will go for ball bearings which are also easier for us to access compared to
tapered bearings from local stores.
http://www.bearingandengineering.co.nz/shop/BEARINGS/Bearings/Accessories/Balls.ht
ml
Somewhat helpful
http://vfrworld.com/forums/showthread.php/37066-ball-vs-tapered-head-bearings
Servo
We have decided to use the parallax continuous rotation servos as we found that the high
speed servos were too fast from testing, and that we didnt have a way to slow it down
due to the simplistic nature of picaxes interaction with servo motors.
Wheel
Our wheels will be 3D printed since we require wheels with very specific measurements
to be used in conjunction with our mount system.
3D Printer Plastic
We will be using ABS plastic for our 3D Printed objects, ABS is much tougher than PLA
and more resistant to heat which can be caused from operating components for long
periods of time. The plastic needs to be strong enough to withstand the camera mount
and other components used so that it does not become a hazard towards players in the
game.
Camera
We have decided to purchase and use the GoPro Hero 3+ Black Edition camera, as we
have a large budget to work with and itll provide the best quality footage for our
stakeholders purposes.
Rope
We decided to use the Zenith 5mm stainless steel rope due to the strength it provides for
our system. With the risks presented from suspending a camera metres from the ground
(camera falling and breaking etc.), we needed to take the safest option despite the
expensive price tag.
Pulley
Weve decided to use the 3D printer for the pulley as it is easier to design and print the
wheels than buying them from local suppliers and taking out the wheel for our project.
RF
We have decided on the Dorji DRF7020-D13-043A as it provides sufficient frequency and
range for the gyms dimensions to function properly indoors. It is also a component we
already have in stock therefore we do not need to spend more on the RF Module and it is
compatible with PICAXE.
MicroSD
We will be using the SanDisk Mobile Ultra MicroSDXC Class 10 UHS (Ultra High Speed)
64GB for storage as it is part of the GoPro requirements for the Hero 3+ Black Edition,
plus large capacities of storage is required for recording HD videos.
Battery
We will use rechargeable alkaline AA batteries as the PE department already has a
charger for AA batteries. This means that both parties will save money spent on batteries
for the project to operate.
Software
Certain GoPros are capable of live video feed (~a few seconds delay). Cameras
onwards from the Gopro Hero 2 HD series are capable of live streaming their camera
footage to the web.
Having access to a live streaming/feed feature would enable us to capture better footage
as we would be able to see what its capturing and control it to record whatever we want
to have in the footage.
GoPro has released a smartphone application capable of remotely controlling the camera,
with functions including the ability to quickly adjust camera settings, start/stop recording,
switching modes, checking the battery level and more.
http://GoPro.com/software-app/GoPro-app
The PE department has their own iPad therefore we will install the GoPro application on it
so that the department can have a live feed while a game is being recorded. We will need
to test out how long multiple games last to make an average time for the GoPro to be in
action so that they know when to recharge the iPad and GoPro
Analysis of initial concepts
Pros
Winch system allows for the rope to be re tightened
Rope can be changed easily, which allows for versatility/portability between
different environments
Easy to bolt the suspension mechanism into walls
Cons
Having a singular piece of wire/rope may not allow the mount to be adequately
balanced
Design 2 - Double Wheel Motor Line Pulley System
Pros
GoPro mount will be more stable when clipped onto the travelling wire, reducing
chances of the mount falling off
Ability to control the servos and mount rotation separately, making it easier to get
the right footage
Cons
More expensive to build
Rope may not be tightened as length will continually vary with different
environmental setups
Design 3 - Double line System
Pros
Having 2 wires allows for more stable movement to and fro for the camera mount
Cons
Line may be hard to set up/transport due to no winch system and more wires
No reliable way to tighten the wires
Design 4 - Single line System
Pros
Light and compact
Portable, easy to set up via bolts
Cons
Having a singular piece of wire/rope may not allow the mount to be adequately
balanced
Having no winch system means the rope may not be 100% tightened
Components involved:
Buttons x 2 ( and optional x 4)
Joystick
Ipad mini (provided from sports department)
RFM
On/off switch
Battery pack
Gamepad Research
These may be useful for our designed concepts
http://www.trustedreviews.com/steelseries-stratus_Games-Accessory_review
http://www.archos.com/gb/products/tablets/themed/archos_gamepad2/index.html
http://www.maclife.com/article/features/ios_7_controller_showdown_which_best
http://www.hongkiat.com/blog/ios-gaming-gadgets/
http://en.wikipedia.org/wiki/Wii_U
http://gamepad-review.toptenreviews.com/
http://www.richrigging.co.nz/services.htm
need to make sure that we get the rigging company to supply and install so that they can
customise it for our mount, and that will give us a warranty.
First Design for GoPro suspended camera
This was the first design that we went with as this type of design seemed to be the most suitable
for the situation. It seemed simple enough and used a kind of ball-and-socket kind on concept
which, in theory, worked quite well. However, the ball was the harder part to get right. At first we
had decided on using a rubber high-bounce ball because of the extra friction that rubber on rubber
creates, and we thought that this would be suitable for our design, however, we found that this
friction worked against us, as it took more energy to rotate with the servos due to the friction
between the ball and the wood. This problem was the solved by 3D printing a ball, which worked
slightly better because there was almost no friction between it and the walls. However there were
points on the ball that were shallower than others, meaning that there were parts where the
servos wouldnt actually even be coming into contact with the ball meaning that it wouldnt rotate.
We found this is a major design flaw and felt that this type of design and concept was very lacking
and felt that there was too much that could go wrong with it, so we decided to put this one on hold
and look for an alternative way of moving and rotating the camera.
Second Design
This was our second design option. This involved a curved stick being threaded through an area
just under the servo wheel, which when rotated, would push or pull the stick in a certain direction
which would allow the camera (which would be on the inside of the stick at the point where the
finger is) to change its angle of view to allow for birds-eye-view and an angle change of almost 90
degrees. This was good, because there wasnt a need for the camera angle to have more than 90
degrees because of how the camera captured images. We felt that this design had the most
flaws, as when it came to testing, where were points where there where slight dips in the stick,
meaning that sometimes the stick wouldnt actually connect with the wheel which disallowed for
the stick to move. Another design flaw that we took into consideration with this one was the
weight. The stick was able to rotate when it was evenly balance, but when the GoPro would be
applied, it would off centre the weight slightly, which disallowed for the servo to have enough
power to bring the camera up to the stopping point so that it could a birds-eye view. This was
quite problematic, as we only had these servos to work with, so there wasnt really a way to
increase their power. We came to a decision that we would not use this design, as it had the most
flaws and was the least safe one to use.
Third Design
This was a very, very early prototype of what would eventually become our final design. This one
was by far the most safe and most practical design. However, during the testing we did encounter
some problems with weight distribution and wires getting tangled up when rotating this device, the
main one being the wires. We decided that this was the design that we would like to work on and
improve to the point that this would become our final product. The flaws with this were that the
wires from the top servo would often spin around as is turned, getting stuck in gaps or blocking
the cameras view of the area. This could become a major problem if it were to be used because it
could mean that the wire would get pulled out and stop a rotation of the camera which would
result in a useless and high maintenance device that would not be worth the effort. We needed to
work around that and decided to use this as our chosen product. It was good with what we wanted
it to do as apart from the wires getting tangled it worked like a charm.
The design that we wanted to work with and chose was design 3, as we felt that this would be the
best one to work with and would be the safest and sturdiest to work with. Below are some of the
screenshots of how we decided to go about working on this. Below, the first five images are of the
circular base. We will print four of these and make them into a circular base.
Programming
Controller
#picaxe14m2 `
main:
readadc b.4, b2
readadc b.5, b3
readadc b.3, b4
readadc b.2, b5
'debug
if b2 < 220 and b2 > 20 and b3 < 220 and b3 > 20 and b4 = 0 and b5 = 0 then Sstall
if b2 < 220 and b2 > 20 and b3 < 220 and b3 > 20 and b4 = 255 and b5 = 0 then Lstall
if b2 < 220 and b2 > 20 and b3 < 220 and b3 > 20 and b4 = 0 and b5 = 255 then Rstall
if b2 < 100 and b3 < 200 and b3 > 100 and b4 = 0 and b5 = 0 then Sup
if b2 < 100 and b3 < 200 and b3 > 100 and b4 = 255 and b5 = 0 then Lup
if b2 < 100 and b3 < 200 and b3 > 100 and b4 = 0 and b5 = 255 then Rup
if b2 > 220 and b3 < 200 and b3 > 100 and b4 = 0 and b5 = 0 then Sdown
if b2 > 220 and b3 < 200 and b3 > 100 and b4 = 255 and b5 = 0 then Ldown
if b2 > 220 and b3 < 200 and b3 > 100 and b4 = 0 and b5 = 255 then Rdown
if b2 > 100 and b2 < 200 and b3 > 200 and b4 = 0 and b5 = 0 then Sleft
if b2 > 100 and b2 < 200 and b3 > 200 and b4 = 255 and b5 = 0 then Lleft
if b2 > 100 and b2 < 200 and b3 > 200 and b4 = 0 and b5 = 255 then Rleft
if b2 > 100 and b2 < 200 and b3 < 100 and b4 = 0 and b5 = 0 then Sright
if b2 > 100 and b2 < 200 and b3 < 100 and b4 = 255 and b5 = 0 then Lright
if b2 > 100 and b2 < 200 and b3 < 100 and b4 = 0 and b5 = 255 then Rright
Sstall:
b0 = 0
b1 = 0
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sup:
b0 = 0
b1 = 1
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sdown:
b0 = 0
b1 = 2
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sleft:
b0 = 0
b1 = 3
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sright:
b0 = 0
b1 = 4
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Supleft:
b0 = 0
b1 = 5
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Supright:
b0 = 0
b1 = 6
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sdownleft:
b0 = 0
b1 = 7
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Sdownright:
b0 = 0
b1 = 8
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lstall:
b0 = 1
b1 = 0
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lup:
b0 = 1
b1 = 1
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Ldown:
b0 = 1
b1 = 2
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lleft:
b0 = 1
b1 = 3
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lright:
b0 = 1
b1 = 4
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lupleft:
b0 = 1
b1 = 5
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Lupright:
b0 = 1
b1 = 6
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Ldownleft:
b0 = 1
b1 = 7
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Ldownright:
b0 = 1
b1 = 8
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rstall:
b0 = 2
b1 = 0
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rup:
b0 = 2
b1 = 1
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rdown:
b0 = 2
b1 = 2
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rleft:
b0 = 2
b1 = 3
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rright:
b0 = 2
b1 = 4
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rupleft:
b0 = 2
b1 = 5
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rupright:
b0 = 2
b1 = 6
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rdownleft:
b0 = 2
b1 = 7
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Rdownright:
b0 = 2
b1 = 8
pause 50
'serout c.0, N2400, (b1,b0)
serout c.0, N2400, ("C",b0)
serout c.0, N2400, ("A", b1)
'debug
goto main
Crawler
#picaxe14m2
init:
b9 = 0
servo b.4, 75
servo b.5, 225
servo b.3, 75
servo b.2, 225
main:
serin c.2, N2400,("C"), b0
'debug
if b0 = 0 then stall
if b0 = 1 then left
if b0 = 2 then right
goto main
stall:
b9 = 1
servopos b.4, off
servopos b.5, off
servopos b.3, off
servopos b.2, off
goto main
if b9 = 1 then
left:
b9 = 0
servo b.4, 225
servo b.5, 75
servo b.3, 75
servo b.2, 225
end if
servopos b.4, 225
servopos b.5, 75
servopos b.3, 75
servopos b.2, 225
pause 90
'debug
goto main
right:
if b9 = 1 then
b9 = 0
servo b.4, 75
servo b.5, 225
servo b.3, 225
servo b.2, 75
end if
servopos b.4, 75
servopos b.5, 225
servopos b.3, 225
servopos b.2, 75
pause 90
'debug
goto main
Camera
#picaxe14m2
init:
b9 = 0
servo b.4, 75
servo b.5, 225
servo b.3, 75
servo b.2, 225
main:
serin c.2, N2400,("C"), b0
'debug
if b0 = 0 then stall
if b0 = 1 then left
if b0 = 2 then right
goto main
stall:
b9 = 1
servopos b.4, off
servopos b.5, off
servopos b.3, off
servopos b.2, off
goto main
left:
if b9 = 1 then
b9 = 0
servo b.4, 225
servo b.5, 75
servo b.3, 75
servo b.2, 225
end if
servopos b.4, 225
servopos b.5, 75
servopos b.3, 75
servopos b.2, 225
pause 90
'debug
goto main
right:
if b9 = 1 then
b9 = 0
servo b.4, 75
servo b.5, 225
servo b.3, 225
servo b.2, 75
end if
servopos b.4, 75
servopos b.5, 225
servopos b.3, 225
servopos b.2, 75
pause 90
'debug
goto main