Technical order (Caliope) circuit?

Hello, I'm currently working on a technical assignment. I have to build a barrier with a servo motor, an LED, and a button. The barrier, or rather the servo, should raise after 3 seconds as soon as the button is pressed, and the LED should flash. This should continue for 15 seconds. I've now written a program in MakeCode Caliope and wanted to ask if this is correct. Attached is the programming, my circuit diagram, and the assignment.

.

Best regards

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
iQa1x
1 year ago

In the flash loop you also have to wait after the LED is turned off, otherwise it will start again and you don’t see it. Put the time down to 500ms (half second on, half second off). I don’t know how they meant that if the An-time should be a Sukunde, you would have to adjust the number of flashes instead.

You forgot to flash within 3 seconds before opening, then the loops from below must be pure with different number.

If this programming environment knows sub-programs, you could take the look as a sub-program as you need 2x.

iQa1x
1 year ago
Reply to  Pascal2510

I wrote above… after “writing P2 to 0” add a break and change the two break times from 1000 to 500.

Upstairs instead of the 3s break, copy the whole green loop with content again and change the number of repetitions to 3.

Using a subprogram instead of copying would be useful, but I can’t write you how it works because I don’t know the Caliope. You can’t.