Friday, March 29, 2019

Vincent-PM-60-robot

i tested saturn's ring for any faults in the new wheel and had to fix the loose parts. also i coded a song on sonic pi which takes a very long time so im about 13 seconds in.

PM-Jordan Fronko-Finished breadboarding

Today I had finished working on the copy of the Jeopardy Project Proto-board. When i applied everything, the button for player 3 was malfunctioning by not responding. !0 minutes later after checking the wiring, I realized the button was connected to GND, not PWR. Other than that, there wasn't any problem with building the circuit.

Nicholas-PM- 35 min-Fixing the Arduino after today's lab

Today I did robot club for open lab. I rewired all three sensors to the Arduino. The reason why I had to rewire the sensors is because of today's lab using the Arduino and the raspberry Pi.

Jose Luis Vargas - PM - 60 min - Brainstorming & RobotClubBlog Update

Today, my day mostly consisted of brainstorming and a bit of a recap. I began thinking about what new addition I could add to the VEX Robot Saturn's Rings. I eventually came up with a lift type attachment (which hadn't completely been thought out yet. I had this planned for a while, but didn't decide to use it until now.) I made a few models of what I would expect it to look like, but I'm still not completely certain on the exact design. I also updated the Robot Club Blog site, which I hadn't updated in a while.

Adam-PM-60min

Today in open lab we were researching 4WD for Shane's car and how the car generally works to save gas. Also, I continued research for my Jeopardy code.

james-pm-1hr-finished the jeopardy code

I finished the code using Erin's help, which I will test out on Monday.
This code has been tweaked to use function event call backs to implement reactions to button presses.
These button presses call backs effectively act as interrupts, with the main function being t react to external sensor readings.Thanks to Erin I was able to make my own working version of the code.

Tristan AM Scissor Lift -one hour

- i helped jorge and mac test the scissor lift
-we added some extra support to fix the joints after the epoxy cracked
- we sat and thuoght of some ways to fix the support bending while attempting to lift it up
-we were considering using a different material to move the bottom since the metal rod bends

gamboa-jorge-am -scissor lift

today we were able to add the piston to the base. our prototype was tested today, a video of our test is on my linkdin

https://www.linkedin.com/in/jorge-gamboa-895637175/

we need to fix our connection to the piston and finalize the prototype

Nicolas Yousif-AM-3/29/19-Raspberry Pi & Arduino

Today I worked on connecting up my raspberry pi to my arduino using the code from the Steam Clown website page. Code is provided down below having to upload it together. 

Thursday, March 28, 2019

Nicholas-PM- 50 min- Jeopardy code

Today, I worked on the jeopardy code. I learned about how to add the timer in code. I added the timer to my code. It was difficult and confusing adding the timer into the code.

PM-Jordan Fronko-Open Lab-Making the Jeopardy Protoboard

Today I had worked on building a copy of the jeopardy interface that would cooperate with the code that we made. I did finish wiring it up, but the problem was is that the bar that we used on the PI was backwards, so we had to get another board, flip the bar around, and i have to just move the wires to the breadboard again.

Alan Le-Hoang - PM - 60m - CHOKING (Asphyxia map haha funny joke)

Continuing work onto the mapping for stuff on SonicPi.

Vincent-PM-60-code

i tried using sonic pi to copy a song i like online so i'm about 11 seconds in and have around 70 lines of code currently and then my raspberry pi crashed.

Miguel-pm-30mins-3d maintnace

I kept on working on the other 3d printer but have not yet figured why it would not print. I will see the instructions and try to diagnose the problem tomorrow.

Jose Luis Vargas - PM - 60 min - Robot Club

Today I made an addition to the Saturn's Rings VEX Robot Booklet Log. The sketch consisted of the new back end wheel we added. I spent the rest of the time with Luis brainstorming how we could improve this new addition, (its position, size of wheel etc.)

james-pm-1hr-improved jeopardy code

I improved the structure of my jeopardy code further by defining some functions for the GPIO.
for example, a new concept that I learned were the GPIO event callbacks. These are events triggered when a change to a GPIO line is triggered. This triggers a function to act and make it do something.
Other possible GPIO constructs would be to precisely time which channnel was triggered first, as there are multiple functions with these channels.

Nicolas-AM-3/28/19-Jeopardy Code

Team: Tony Genchev
Project: Jeopardy code #2
Me and my partner had continued finding and deciphering a block code and a push button code.    Here is our module:

# Jeopardy Controller
# 3.3v = 1,17, 5.0v =2,4 GND = 6,9,14,20,25,30,34,39
# I/O = 3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,
# More I/O =26,27,28,29,31,32,33,35,36,37,38,40

import RPi.GPIO as GPIO
from time import sleep

GPIO.setmode(GPIO.BOARD)
alexResetButton = 18
alexStartTimerButton = 22
readyLED = 5
player1LED = 7
player2LED = 8
player3LED = 10
player4LED = 11
player1Button = 12
player2Button = 13
player3Button = 15
player4Button = 16


GPIO.setup(readyLED, GPIO.OUT)
GPIO.setup(player1LED, GPIO.OUT)
GPIO.setup(player2LED, GPIO.OUT)
GPIO.setup(player3LED, GPIO.OUT)
GPIO.setup(player4LED, GPIO.OUT)
GPIO.setup(alexResetButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(alexStartTimerButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player1Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player2Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player3Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player4Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

# Your Code Here
 
while True:
    if player1Button True:
        print(hello)
        player2Button == False
        player3Button == False
        player4Button == False
    if player2Button True:
        print(hello)
        player1Button == False
        player3Button == False
        player4Button == False
    if player3Button True:
        print(hello)
        player1Button == False
        player2Button == False
        player4Button == False
    if player4Button True:
        player1Button == False
        player2Button == False
        player3Button == False
        


Wednesday, March 27, 2019

Jordan Fronko-PM-Open Lab- Jeopardy Code

# Jeopardy Controller
# 3.3v = 1,17, 5.0v =2,4 GND = 6,9,14,20,25,30,34,39
# I/O = 3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,
# More I/O =26,27,28,29,31,32,33,35,36,37,38,40

import RPi.GPIO as GPIO
from time import sleep
import random
import time
n=10
count=0

GPIO.setmode(GPIO.BOARD)
alexResetButton = 18
alexStartTimerButton = 22
readyLED = 5
player1LED = 7
player2LED = 8
player3LED = 10
player4LED = 11
player1Button = 12
player2Button = 13
player3Button = 15
player4Button = 16

GPIO.setup(readyLED, GPIO.OUT)
GPIO.setup(player1LED, GPIO.OUT)
GPIO.setup(player2LED, GPIO.OUT)
GPIO.setup(player3LED, GPIO.OUT)
GPIO.setup(player4LED, GPIO.OUT)
GPIO.setup(alexResetButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(alexStartTimerButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player1Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player2Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player3Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player4Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
list.Answerbucket[]
Answerbucket.append["He loves to build walls, but hasn't built one yet."]
Answerbucket.append["He is America's Uncle whom makes the most money off you."]
Answerbucket.append["She was born on January 7, 2092","Give me a break of that."]
list.players()
# Your Code Here
def countdown(n) :
if count==0:
players.append[p1]
players.append[p2]
players.append[p3]
players.append[p4]
 print("Jeopardy the game[game reset]")
  if GPIO.output(22,True)
    print("Answer time!",(random.choice(Answerbucket)))
    for count in time:#what is this for? #the timer? I think
      count=count+1
      countup(1)
      print (count, "second(s) left")
#this loop will turn off all of the buttons and turn on the LED for the button that was pressed
      for b in "p1":
        players.remove[p2]
        players.remove[p3]
        players.remove[p4]
        GPIO.output(7,True)
        print("player 1, what is the question to",Answerbucket,"? You have 10 seconds.")
        sleep(.13)
        print("3....")
        sleep(1)
        print("2....")
        sleep(1)
        print('1!')
        while n>0:
          n=n-1
          GPIO.output(7,True)
          countdown(1)
          print (n, "second(s) left")
          GPIO.output(7,False)
          if GPIO.output(12,True):
            break
            if n==0:
              print("Time's up!")
              delay(.1)
              print("let's go again")
              break
while True:
while resetButtonState == False:
  resetButtonState = GPIO.input(alexResetButton)
  if alexResetButton = True:
    GPIO.output(player1LED,False)
    GPIO.output(player2LED,False)
    GPIO.output(player1LED,False)
    GPIO.output(player1LED,False)
    player1Button = False
    player2Button = False
    player3Button = False
    player4Button = False
    n=10
    count=0

today during open lab I worked on the Jeopardy project code. I plan on fine-tuning the player section of code so i can copy-paste them to the rest of the player code. Tomorrow i want to work on the end and beginning as well.

Nicholas-PM- 40 min- Doing robot club

Today in robot club I fixed the wires connected to the sensors.

site:
https://steamclown-robotclub-tank-2.blogspot.com/

Jose Luis Vargas - PM - 60 min - Jeopardy Code

Today I continued working on my Jeopardy code throughout Open Lab Time. I ran into a few problems along the way, but will be continue adding to my code tomorrow.

3d print for car Andrew and Maxx

we looked at various camera mounts for our car. https://www.thingiverse.com/thing:128617
Also maxx found a mound for the pi

Vincent-PM-60-support

I went around to multiple people checking on what they were doing and giving feedback/advice on things they should do or can do.

Erin- PM-1.5hour- Huntington XYZ, Taken Apart

So, yesterday I took off the power supply board on the Huntington XYZ and found 3 CY-40 stepper motor drivers. Mr. Burnham wants us to utilize these when using the motors now.

So, today I did some research on these drivers and found a link. However time had gone up before I could read it through fully.

Picture of Drivers: 

Link to manual: https://manualzz.com/doc/7160573/cy-41--cy-42-bipolar-full-half-step-motor-driver

Adam-PM-40

Today in open lab I worked more on the Jeopardy code:


#Adam and Alex
# Jeopardy Controller
# 3.3v = 1,17, 5.0v =2,4 GND = 6,9,14,20,25,30,34,39
# I/O = 3,5,7,8,10,11,12,13,15,16,18,19,21,22,23,24,
# More I/O =26,27,28,29,31,32,33,35,36,37,38,40

import RPi.GPIO as GPIO
from time import sleep

GPIO.setmode(GPIO.BOARD)
ResetButton = 18
SecondRoundButton = 22
readyLED = 5
player1LED = 7
player2LED = 8
player3LED = 10
player4LED = 11
player1Button = 12
player2Button = 13
player3Button = 15
player4Button = 16


GPIO.setup(readyLED, GPIO.OUT)
GPIO.setup(player1LED, GPIO.OUT)
GPIO.setup(player2LED, GPIO.OUT)
GPIO.setup(player3LED, GPIO.OUT)
GPIO.setup(player4LED, GPIO.OUT)
GPIO.setup(ResetButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(StartTimerButton, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player1Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player2Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player3Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(player4Button, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)

# Your Code Here
from time import sleep
import threading

player1Button.state(["!disabled"])  # Enable the button.
player2Button.state(["!disabled"])  # Enable the button.
player3Button.state(["!disabled"])  # Enable the button.
player4Button.state(["!disabled"])  # Enable the button.

t = threading.Timer(45.0) #timer for 45 seconds
t2 = threading.Timer(20.0) #timer

While ResetButton = True:
    readyLED = High
    t.start()#main timer

    If player1Button = True:
        t2.start()#mini timer
        player1LED = High
        time.sleep(.5)
        player1LED = Low
        time.sleep(.5)
        player1LED = High
        player1Button.state(["disabled"])   # Disable the button.
        #if player is wrong, send the other 3 players to redemtion round.
-----------------------------------------------------------------------------------------------------------------------------------------------------
        While SecondRoundButton = True
        
  If player2Button = True:
   t2.start()#mini timer
   player2LED = High
   time.sleep(.5)
   player2LED = Low
   time.sleep(.5)
   player2LED = High
   player2Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player2LED = Low

  If player3Button = True:
   t2.start()#mini timer
   player3LED = High
   time.sleep(.5)
   player3LED = Low
   time.sleep(.5)
   player3LED = High
   player3Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player3LED = Low

  If player4Button = True:
   t2.start()#mini timer
   player4LED = High
   time.sleep(.5)
   player4LED = Low
   time.sleep(.5)
   player4LED = High
   player4Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player4LED = Low
-----------------------------------------------------------------------------------------------------------------------------------------------------

    Else:
        player1LED = Low

    If player2Button = True:
        t2.start()#mini timer
        player2LED = High
        time.sleep(.5)
        player2LED = Low
        time.sleep(.5)
        player2LED = High
        player2Button.state(["disabled"])   # Disable the button.
        #if player is wrong, send the other 3 players to redemtion round.
-----------------------------------------------------------------------------------------------------------------------------------------------------
        While SecondRoundButton = True
        
  If player1Button = True:
   t2.start()#mini timer
   player1LED = High
   time.sleep(.5)
   player1LED = Low
   time.sleep(.5)
   player1LED = High
   player1Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player1LED = Low

  If player3Button = True:
   t2.start()#mini timer
   player3LED = High
   time.sleep(.5)
   player3LED = Low
   time.sleep(.5)
   player3LED = High
   player3Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player3LED = Low

  If player4Button = True:
   t2.start()#mini timer
   player4LED = High
   time.sleep(.5)
   player4LED = Low
   time.sleep(.5)
   player4LED = High
   player4Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player4LED = Low
-----------------------------------------------------------------------------------------------------------------------------------------------------
    Else:
        player2LED = Low

    If player3Button = True:
        t2.start()#mini timer
        player3LED = High
        time.sleep(.5)
        player3LED = Low
        time.sleep(.5)
        player3LED = High
        player3Button.state(["disabled"])   # Disable the button.
        #if player is wrong, send the other 3 players to redemtion round.
-----------------------------------------------------------------------------------------------------------------------------------------------------
        While SecondRoundButton = True
        
  If player1Button = True:
   t2.start()#mini timer
   player1LED = High
   time.sleep(.5)
   player1LED = Low
   time.sleep(.5)
   player1LED = High
   player1Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player1LED = Low

  If player2Button = True:
   t2.start()#mini timer
   player2LED = High
   time.sleep(.5)
   player2LED = Low
   time.sleep(.5)
   player2LED = High
   player2Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player2LED = Low

  If player4Button = True:
   t2.start()#mini timer
   player4LED = High
   time.sleep(.5)
   player4LED = Low
   time.sleep(.5)
   player4LED = High
   player4Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player4LED = Low
-----------------------------------------------------------------------------------------------------------------------------------------------------
    Else:
        player3LED = Low

    If player4Button = True:
        t2.start()#mini timer
        player4LED = High
        time.sleep(.5)
        player4LED = Low
        time.sleep(.5)
        player4LED = High
        player4Button.state(["disabled"])   # Disable the button.
        #if player is wrong, send the other 3 players to redemtion round.
-----------------------------------------------------------------------------------------------------------------------------------------------------
        While SecondRoundButton = True
        
  If player1Button = True:
   t2.start()#mini timer
   player1LED = High
   time.sleep(.5)
   player1LED = Low
   time.sleep(.5)
   player1LED = High
   player1Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player1LED = Low

  If player2Button = True:
   t2.start()#mini timer
   player2LED = High
   time.sleep(.5)
   player2LED = Low
   time.sleep(.5)
   player2LED = High
   player2Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player2LED = Low

  If player3Button = True:
   t2.start()#mini timer
   player3LED = High
   time.sleep(.5)
   player3LED = Low
   time.sleep(.5)
   player3LED = High
   player3Button.state(["disabled"])   # Disable the button.
   #if player is wrong, send the other 3 players to redemtion round.
  Else:
   player3LED = Low
-----------------------------------------------------------------------------------------------------------------------------------------------------
    Else:
        player4LED = Low