This emulates an egg-and-spoon race. The on-board accelerometer is used to simulate the spoon. The egg is a dot within a circle on the screen. The time and number of drops at the finish of a race is stored on the Kookaberry and transmitted to the teacher’s Kookaberry for display on the classroom smart board or monitor. The ListenLog app should be running on the teacher’s Kookaberry.
Step 1: Setup
Set up the app by plugging a buzzer into connector P2 and run the app.
What is showing on the screen?
Top: The name of the app with the Buzzer shown as being plugged into P2
Middle: The circle is the “spoon” and the dot is the “egg”. When the egg is dropped (ie the dot goes outside the circle), the circle shows a white rectangle behind the circle. Each time the egg is dropped during the race, the Buzzer sounds and the Count timer increments by one. The Time counter shows the second elapsed since the Go button (Button B) is pressed.
Bottom: Button A is Exit from application; Button C reduces the diameter (ie the angle of tilt beyond which the algorithm deems the egg to be dropped) of the spoon; the default angle is 10 degrees; Button D increases the diameter of the spoon; and Button B stops and starts the race. When Button B is pressed to start the race, the indicator changes to Stp. When it is pressed to stop the race, it changes back to Go.
Step 2: Running the app
Press Button B to start the race and the Count and Time registers. The indicator changes to Stp.
Have the participant move steadily around a fixed course – with obstacles like a chair to climb over. Have them press Button B as they cross the Finish line – the indicator will change to Go ready for the next race. The time taken to go around the course, plus the number of times they have dropped the egg, will be shown on the screen; stored in the on-board USB memory; and broadcast to the teacher’s Kookaberry which will be running the ListenLog app.
Step 3: Analysing the results
Analyse and discuss the results – Who has won?
Two variables are measured for each race – Count (egg drops) and Time (to go around the course). A participant can go around quickly with a lot of drops; or slowly with very few drops. How can you work out who has won?
This is a basic mathematical question of how to turn two variables into one variable, and there is no one answer….. It depends on the mechanism used. Multiply them; divide them; add them; subtract them; just use one of them? The table below shows actual results and the various mechanisms described. Which way is best…..or fairest? Have fun!
Algorithm (BalanceMe app)
- Read Kappconfig file for data pertaining to the running of this app (eg, Learning plan number; radio channel)
- Initialise display
- Read the angle set in the display (default 10 degrees)
- Set buzzer timings and limits on how many drops permitted before timer is reset (This to avoid a participant racing around the course with no care about how many times the egg is dropped)
- Prepare the data logging CSV file (eg, column headings) and initialise the screen display.
- Establish button conditions
- Read accelerometer outputs and display egg position and Count and Time readings on screen display.
- Close and reset for next operation when Button B is pressed a second time
Hii huiga mashindano ya mayai na kijiko. On-bodi accelerometer ni kutumika kuiga kijiko. Yai ni nukta ndani ya mduara kwenye skrini. Wakati na idadi ya matone katika kumaliza mbio ni kuhifadhiwa juu ya Kookaberry na kupitishwa kwa Kookaberry mwalimu kwa ajili ya kuonyesha juu ya darasa smart bodi au kufuatilia. Programu ya ListenLog inapaswa kuwa ikiendesha kwenye Kookaberry ya mwalimu. Hatua ya kwanza: Kuanzisha programu kwa kuunganisha buzz kwenye kiunganishi cha P2 na kuendesha programu. Ni nini kinachoonyeshwa kwenye skrini? Juu: Jina la programu na Buzzer kuonyeshwa kama kuwa plugged katika P2 Kati: Mzunguko ni <unk>kikombe<unk> na nukta ni <unk>yai<unk>. Wakati yai imeshuka (yaani nukta inakwenda nje ya mduara), mduara unaonyesha mstatili mweupe nyuma ya mduara. Kila wakati yai linapopigwa wakati wa mbio, sauti ya Buzzer inasikika na kipima-wakati cha kuhesabu huongezeka kwa moja. Muda counter inaonyesha pili kupita tangu Go kifungo (Kifungo B) ni kubonyeza. "Kichwa cha ""A"" ni Exit kutoka kwa maombi; ""C"" hupunguza kipenyo (yaani pembe ya tilt ambayo algorithm inachukulia yai kuanguka) ya kijiko; ""D"" huongeza kipenyo cha kijiko; na ""B"" inasimama na kuanza mbio." Wakati kifungo B ni kubonyeza kuanza mbio, kiashiria mabadiliko ya Stp. Inapofungwa ili kuacha mbio, hubadilika na kurudi kwenye Go. Hatua ya 2: Kufanya kazi ya programu: Bonyeza kifungo B kuanza mbio na Count na Time rekodi. Kiashiria hubadilika kuwa Stp. Kuwa na mshiriki hoja kwa utulivu kuzunguka kozi fasta <unk> na vikwazo kama kiti kupanda juu. Kuwa na wao bonyeza Button B kama wao kuvuka mstari wa kumaliza <unk> kiashiria itabadilika kwenda tayari kwa ajili ya mbio ijayo. Wakati uliochukuliwa kuzunguka kozi, pamoja na idadi ya mara wamekuwa kuanguka yai, itaonyeshwa kwenye skrini, kuhifadhiwa katika kumbukumbu ya USB ndani ya bodi, na matangazo kwa Kookaberry mwalimu ambayo itakuwa kuendesha programu ListenLog. Hatua ya 3: Uchambuzi wa matokeo: Uchambuzi wa matokeo na kujadili matokeo - Nani ameshinda? Vitu viwili hupimwa kwa kila mbio <unk> Hesabu (matone ya mayai) na Wakati (kuenda kuzunguka kozi). Mshiriki anaweza kuzunguka haraka kwa matone mengi; au polepole kwa matone machache sana. Unawezaje kujua ni nani aliyeshinda? Hii ni swali la msingi la hisabati la jinsi ya kugeuza vigezo viwili katika vigezo moja, na hakuna jibu moja..... Inategemea utaratibu unaotumiwa. Kuzidisha, kugawanya, kuongeza, kuondoa, kutumia moja tu? Jedwali hapa chini linaonyesha matokeo halisi na taratibu mbalimbali zilizoelezwa. Ni njia gani iliyo bora... au iliyo sawa zaidi? Furahia wakati wako! Algorithm (App BalanceMe) - Soma faili ya Kappconfig kwa data inayohusiana na kuendesha programu hii (kwa mfano, nambari ya mpango wa kujifunza, kituo cha redio) - Kuanzisha kuonyesha - Soma pembe iliyowekwa kwenye kuonyesha (kiwango cha default ni digrii 10) - Weka nyakati za buzzer na mipaka ya jinsi ya kushuka kunaruhusiwa kabla ya kuanzisha tena (Hii ni ili kuepuka mshiriki wa mbio kuzunguka kozi bila kujali mara ngapi ya yai imeshuka). - Kuanzisha masharti ya kifungo - Kusoma outputs accelerometer na kuonyesha nafasi ya yai na Count na Muda masomo juu ya kuonyesha skrini. - Kufunga na kuweka upya kwa ajili ya operesheni ijayo wakati Button B ni kubonyeza mara ya pili