I'll post that part in an own "hardware"-thread in this subforum.ĭisplay, ready to put onto the GPIO header. Of course we use available resources and infos from the Raspi community here. Using the hardware (how to put a display from card to the miniLCD). Build some scripts for creating "images" (the pixel-displays) on such a display. I'll post that part in the "easy math"-thread of this subforum: Relations I and II, see here. This may be applied to ANY display (which has also, if scaling a clipped region high enough, the behaviour of a mini display). The first two steps may be of it's own LC-related "scripting interest" for all platforms. We'll do this in 3 steps, only step depends on Raspi hardware. Our next goal is to handle mini displays like the 84x48 Mini-LCD-display (ready to use available for 10$ (Adafruit,Sunfounder) this is in fact the Nokia 5110 display of an early mobile phone). (5.32 KiB) Downloaded 632 times Simple 16 - 6 - 24 teeth gears gears3.png (30.98 KiB) Viewed 18679 times The stack runs on Mac/Win/Linux using LC 6-8, and on RaspberryPi using (the only available) LC 6.5.1 or 7.0.4 Use it for fun, explore and change the (medium difficult) script. ( g*cos(t), g*sin(t) ) where t is the angle ( t=degree*pi/180 ) [ The simplified math used here for the gear's curves is given by On a 2.5 GHz machine: Around 3|7 ms on LC 6|LC 7.On a Raspi B: Around 135|255 ms on LC 6|LC 7.On a Raspberry Pi 2: Around 35|65 ms on LC 6|LC 7,.the "rotation speed" of millisecs per rotation-step (step is here 48/N degrees).Įach of the loops (one angle status) computes the rotated points for the three gears.The radius is then set to keep the ratio radius/N = constant (here constant=10). You can adjust (also while the animation is running) This is a mathematical "prototype" approach for the simplest case, it's much more complicated in mechanical engeneering (for a first good overview see ). The animation is again a rotation of the polygons, no use of images. My goal was to make gears with polygons only. Raspberry Pi stacks collection #69 = Gears.livecode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |