For the last few months, I have been working on a website for Shaw Nature Reserve. The website will be used to log and record data on animal sightings. The user will be able to record the conditions in which they found the animal (location, temperature, etc) and select the type and number of animal by choosing from the list. Once the it is submitted, the information is saved and can be viewed on a separate page. It is not a finished website, but there has been a lot of progress made and almost everything is fully functional.
For a long time me and my group have been trying to get dimensions and drawing planned out. We have been making this list of items and specific sizes for some of the other items. We are getting towards the phase of construction once we have all of our items accessible. We planned out how we are going to screw it in and make it sturdy. So we have everything pretty much planned we are just needing to move forwards.
I have designed and made ornaments for makerspace business club. The profits from the ornaments will go to maintaining and upgrading the makerspace tools.
I recently added everything I make to the Makerspace Business website. That includes coasters and ornaments. The link is below:
For Makerspace, I needle pointed (which takes a lot of precision) and I made signs with the laser cutter for the place where my uncle and I hike.
I tried making a sticker for my camera flash. I was going to put a smile face on it; however the face was too small and weeding ruined it.
For the past couple of weeks I have been choosing a different part of a 1984 Vespa engine to work on every day. After I choose a part I take it off to learn about it. After fiddling with it enough, I can usually figure out what it does based off of my basic knowledge of engines and how they work. Once I have figured out the function, I inspect it to see if there is anything that might be impeding its ability to do its job. I clean whatever might be in the way and put the part back on to the engine. So far I have finished the carburetor, the combustion chamber and the muffler. It doesn’t appear to have any major issues, just a whole lot of grease that needs to be cleaned.
My belt was loose so I used the I-fixit toolkit to refasten the leather to the belt buckle.
I have been working on two websites: the first one being the website for the Makerspace Business Club, and the second one being the macro-invertebrate log for the ITEF grant. Neither of them are done yet, but the both of the websites are up and (more or less) functional.
Too set up your stepper motor you first need to make the circuit. You can connect the motor straight to the raspberry pi if you would like. I used this link. Make sure you know what GPIO you use for the four inputs.
Next, you need to set up the code. I used the link below for the initial code and then modified it to specific uses I wanted the motor to do. You will need to put parentheses around all the print statements.
I wanted to control two motors, direction and how many rotations the motor spins for. For that use the code below.
from time import sleep
import RPi.GPIO as GPIO
import os
import random
GPIO.setmode(GPIO.BCM)
class stepmotor:
def __init__(self, IN1, IN2, IN3, IN4):
self.IN1 = IN1 # IN1
self.IN2 = IN2 # IN2
self.IN3 = IN3 # IN3
self.IN4 = IN4 # IN4
self.time = 0.001
GPIO.setup(IN1,GPIO.OUT)
GPIO.setup(IN2,GPIO.OUT)
GPIO.setup(IN3,GPIO.OUT)
GPIO.setup(IN4,GPIO.OUT)
GPIO.output(IN1, False)
GPIO.output(IN2, False)
GPIO.output(IN3, False)
GPIO.output(IN4, False)
def Step1(self):
GPIO.output(self.IN4, True)
sleep (self.time)
GPIO.output(self.IN4, False)
def Step2(self):
GPIO.output(self.IN4, True)
GPIO.output(self.IN3, True)
sleep (self.time)
GPIO.output(self.IN4, False)
GPIO.output(self.IN3, False)
def Step3(self):
GPIO.output(self.IN3, True)
sleep (self.time)
GPIO.output(self.IN3, False)
def Step4(self):
GPIO.output(self.IN2, True)
GPIO.output(self.IN3, True)
sleep (self.time)
GPIO.output(self.IN2, False)
GPIO.output(self.IN3, False)
def Step5(self):
GPIO.output(self.IN2, True)
sleep (self.time)
GPIO.output(self.IN2, False)
def Step6(self):
GPIO.output(self.IN1, True)
GPIO.output(self.IN2, True)
sleep (self.time)
GPIO.output(self.IN1, False)
GPIO.output(self.IN2, False)
def Step7(self):
GPIO.output(self.IN1, True)
sleep (self.time)
GPIO.output(self.IN1, False)
def Step8(self):
GPIO.output(self.IN4, True)
GPIO.output(self.IN1, True)
sleep (self.time)
GPIO.output(self.IN4, False)
GPIO.output(self.IN1, False)
def left(self, step):
for i in range (step):
self.Step1()
self.Step2()
self.Step3()
self.Step4()
self.Step5()
self.Step6()
self.Step7()
self.Step8()
#print (“Step left: “),i
def right(self, step):
for i in range (step):
self.Step8()
self.Step7()
self.Step6()
self.Step5()
self.Step4()
self.Step3()
self.Step2()
self.Step1()
#print (“Step right: “),i
#def move2right(steps):
# for i in range(half):
# motor1.right(1)
# motor2.right(1)
# sleep(0.05)
half = int(512/2)
quarter = int(512/4)
full = int(512)
twice = int(512*2)
motor1 = stepmotor(2,3,4,10)
motor2 = stepmotor(17,27,22,18)
for i in range(twice*10):
motor1.right(1)
motor2.left(1)
GPIO.cleanup()
Recent Comments