• Week 11 (session 5)

    Sylvain03/13/2025 at 09:41 0 comments

    I received 3 servos identical to the ones I need so I tested them to make sure they work properly. I tested them one at a time so I could power supply them with only the Raspberry and my computer.

    I also had all the parts I printed so I started removing the supports on the pieces.

  • Week 10 (session 4)

    Sylvain03/12/2025 at 13:18 0 comments

    I didn't do much during the Wednesday session but Vladimir told me I needed to start printing the pieces of the arm, so I downloaded all the parts on Bambu Studio and I prepared the plates to print them during the week. I had a total of 22 hours of impression so I divided it in 3.

  • Week 9 (session 3)

    Sylvain03/05/2025 at 13:52 0 comments

    Now that I have some basis to control servos with Python I need to work on the structure of the arm. Joon-Ho showed me a video of a robotic arm controlled by Arduino and an app, so I can take this project and upgrade it. He gave me the STEP files to print the parts of the arm.

    The first thing I did was to watch the video several times to see how it works and on what will I have to work on.

    My first issue is to control the servos with Python rather than Arduino. Then I have to adapt the basis to fit a Raspberry PI inside because with a terminal adapter it bigger than an Arduino card.

    I then brought home some cardboard to create a first shitty version of a robotic arm with servos controlled by Python. I was able to control 2 part of the arm just as the clamp even if it doesn't work properly.

  • Week 8 (Session 2)

    Sylvain02/25/2025 at 08:50 0 comments

    I picked up a Rasberry pi at L'Atelier to get familiar with it because it is the first time I use one. I firstly wanted to program in C++ but I really suck at programming so I thought Python was the best language to start. With Python, someone recommend me Thonny as an IDE so I downloaded it then set up the Rasberry pi on the App.

    My first objective was to light a LED only with my computer just to familiarize myself with the link between Python and the Rasberry. I then worked with buttons, a buzzer and a servo (SG90).

    I worked a little bit every day to be able to control the servo with 2 push buttons and this is the code I used :

    from machine import Pin, PWM
    import time
    
    servo = PWM(Pin(15))
    servo.freq(50)
    button1 = Pin(14, Pin.IN, Pin.PULL_UP)
    button2 = Pin(13, Pin.IN, Pin.PULL_UP)
    
    def set_angle(angle):
        min_us = 500
        max_us = 2500
        us = min_us + (angle / 180) * (max_us - min_us)
        duty = int((us / 20000) * 65535)  
        servo.duty_u16(duty)
    
    angle = 90
    
    try:
        while True:
            if button1.value():
                angle = min(angle + 5, 180)
                set_angle(angle)
                time.sleep(0.05)
            
            if button2.value():
                angle = max(angle - 5, 0)
                set_angle(angle)
                time.sleep(0.05)
    except KeyboardInterrupt:
        print("Arrêt du programme")
        set_angle(90)