Best Of
FOSDEM 2023
Hi,
A little tip.
FOSDEM 2023 is this weekend in Brussels. FOSDEM 2023 - Home
I you have time visit my devroom
FOSDEM 2023 - FOSS Educational Programming Languages devroom
One presentation is about MicroBlocks. PicoBricks and MicroBlocks are a great combination. I will bring a PicoBricks, stickers and flyers to the devroom. Maybe we can meet after the devroom finishes.
With any luck we will also be able to show MicroBlocks at the Software Freedom Conservancy stand on saturday and sunday.
Peter
PicoBricks Otto Tank Project
Project Details
Project Images
MicroBlocks Codes of The Project
STL Files
This project was inspired by the Thingiverse design in the link.
PicoBricks Labyrinth
Hello makers!
Your imagination is the limit of what you can do with PicoBricks!
With PicoBricks, you can create most games you want using your creativity. For example, making a labyrinth can be pretty fun. With the new version PicoBricks, you can control it with a remote control.
What you need:
- PicoBricks
- 2 x servo motors
- Maze body (can be made using a 3D printer or cardboard box.)
- Connection cable
- Plastic clamps
- Remote control
MicroBlocks Code of The Project
For the mechanical parts, we got references from Thingiverse.
STL Files of The Project
Read the Docs
Hello Makers!
Have you checked out PicoBricks' Read the Docs page? We created our Read the Docs page because it takes a lot of time to access up-to-date codes and projects via the e-book.
You can quickly find the most up-to-date codes, projects, information, and more about PicoBricks by clicking here! 💪
And also you can access PicoBricks Read the Docs from PicoBricks/Wiki.
Re: Connect Pico to Linux and gdb debugger.
I had to look up what gdb was 😁
from https://www.sourceware.org/gdb/
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.
GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:
- Start your program, specifying anything that might affect its behavior.
- Make your program stop on specified conditions.
- Examine what has happened, when your program has stopped.
- Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.
Those programs might be executing on the same machine as GDB (native), on another machine (remote), or on a simulator. GDB can run on most popular UNIX and Microsoft Windows variants, as well as on Mac OS X.What Languages does GDB Support?
GDB supports the following languages (in alphabetical order):
- Ada
- Assembly
- C
- C++
- D
- Fortran
- Go
- Objective-C
- OpenCL
- Modula-2
- Pascal
- Rust
Number Guessing Game
The number guessing game project allows the Picobricks to find a number that you keep in the range of 1-128 by directing the Picobricks with the help of an IR sensor and remote control.
After pressing the button, Picobricks makes the first guess and waits for the player to direct by using the "up", "down" and "ok" keys of the controller.
Project Algorithm
- Start when button is pressed.
- Divide the max prediction value by 2.
- If the player presses the up key, that is, if Picobricks’ prediction is less than the player’s number, divide the guess interval by 2 again and add it to the current Picobricks’ prediction.
- If the player presses the down key, that is, if Picobricks’ prediction is greater than the player’s number, divide the guess interval by 2 again and subtract it from the current Picobricks’ prediction.
- If the player presses “ok” button, end the game and congratulate Picobricks.
- Repeat the 2nd, 3rd and 4th steps until the “ok” button is pressed.
- Return the 1st step.
Project Pin Diagram
Project Images
MicroBlocks Codes of The Project
Re: PotentiometerBar
Disregard last tx... I figured it out... drop down within script.
tx
Gilles
Project 2.3
I am tryign to work through the book projects in order. 2.3 uses the light sensor and the RGB LED. Everything seems to work except my LED flickers and is always green (led color is set to red).
My normal sensor range is 4 or 5 to about 90. stays fairly consistent (wtihin5%) and so set code to 70 rather than 90 to ensure it wasnt the sensor moving to cause the flicker.
I have changed the wiring so it is not the external cables. (I separated the components already).
stopped and started the microblocks program.
any more ideas?
Re: PotentiometerBar
Best place to start is the MicroBlocks WIKI, SNAP section, and then follow the article Snap2MB there. It explains the OLED pixel map and its operation at a high level. You can also see the SNAP code, which is also all blocks, taking a PNG image, creating a table of pixels, and manipulating them into the format I used in MicroBlocks. The entire OLED library is written in blocks and still runs very fast. Images converted into MB _imgData list format and the manipulating code is then transferred to the Clipboard and pasted into MB as a program that gens the image.
Very glad to see that you are taking an interest into the adv features of MB. You will not be disappointed.
Don't hesitate to ask for help as you are experimenting.