معماری
Home / Do It Yourself / Unchained Melody – How to make (ghost) slime with Crickit @adafruit #crickit « Adafruit Industries – Makers, hackers, artists, designers and engineers!

Unchained Melody – How to make (ghost) slime with Crickit @adafruit #crickit « Adafruit Industries – Makers, hackers, artists, designers and engineers!

Unchained Melody – How to make (ghost) slime with Crickit (video). Code and guide.

Circuit Playground Ghosty Bb

https://www.adafruit.com/crickit
https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/Crickits
https://www.youtube.com/playlist?list=PLjF7R1fz_OOW4YvQEoRLmocKUuOgvI-wh

HOW TO MAKE SLIME:
Pour 1 cup of glitter glue into a ROBOT bowl.
Add 1 tablespoon of baking soda.
Mix well with ROBOT FRIEND.
Add 1 tablespoon of contact lens solution.
Mix well with ROBOT FRIEND.

Ladyada was unable to get to sleep. Feeling restless she decided to visit her workshop and make some slime to help soothe her soul. Then her companion showed up to lend a hand and have fun together!
https://learn.adafruit.com/adafruit-crickit-creative-robotic-interactive-construction-kit/slime-night

GHOST pottery scene:
https://www.youtube.com/watch?v=CXfxUVjHFl0


from digitalio import DigitalInOut, Direction, Pull

from adafruit_seesaw.seesaw import Seesaw

from adafruit_seesaw.analoginput import AnalogInput

from adafruit_seesaw.pwmout import PWMOut

from adafruit_motor import motor

from busio import I2C

import neopixel

import audioio

import board

import time



# Create seesaw object

i2c = I2C(board.SCL, board.SDA)

seesaw = Seesaw(i2c)



# built in CPX button A

button = DigitalInOut(board.BUTTON_A)

button.direction = Direction.INPUT

button.pull = Pull.DOWN



# NeoPixels

pixels = neopixel.NeoPixel(board.A1, 10, brightness=0)

pixels.fill((0,0,250))



# Analog reading from Signal #1 (ss. #2)

foot_pedal = AnalogInput(seesaw, 2)



# Create one motor on seesaw PWM pins 22 & 23

motor_a = motor.DCMotor(PWMOut(seesaw, 22), PWMOut(seesaw, 23))

motor_a.throttle = 0



def map_range(x, in_min, in_max, out_min, out_max):

    # Maps a number from one range to another.

    mapped = (x-in_min) * (out_max - out_min) / (in_max-in_min) + out_min

    if out_min  %0.3f" % (press, speed))

    motor_a.throttle = speed



    if not time_to_play and speed > 0.1:

        print("Start audio in 3 seconds")

        time_to_play = time.monotonic() + 3

    elif time_to_play and time.monotonic() > time_to_play and not played:

        print("Playing audio")

        a.play(wav)

        played = True



    # turn on/off blue LEDs

    if button.value:

        if pixels.brightness 

Get the only spam-free daily newsletter about wearables, running a “maker business”, electronic tips and more! Subscribe at AdafruitDaily.com !

No comments yet.

Adafruit has a “be excellent to each other” comment policy. Help us keep the community here positive and helpful. Stick to the topic, be respectful of makers of all ages and skill levels. Be kind, and don’t spam – Thank you!

Read Automatic By TracePress.com Company
if this Post need Change Tell Us!

About sara

Check Also

Japanese Designer Creates Incredibly Detailed & Realistic Maps of a City That Doesn’t Exist #ArtTuesday « Adafruit Industries – Makers, hackers, artists, designers and engineers!

Interesting article Via OpenCulture When he first spent time in Japanese cities, urban design and …

Leave a Reply

Your email address will not be published. Required fields are marked *

قالب وردپرس