• My bachelor's thesis

    Peter Wasilewski10/25/2021 at 19:46 0 comments

    Hey! 

    This log may seem quite short, but I have something special to show you this time - it's my bachelor's thesis. It's a thorough report about the brushless modules used in Wolfie. If you're interested in reading it you can find it on my blog: 

    https://pwwprojects.blogspot.com/2021/10/my-bachelors-thesis-brushless-actuator.html

    By the way, the Wolfie project is not dead  - I just have a lot of other activities right now. Even though, in my spare time, I'm working on the Raspberry pi communication (between the RPI and motor modules). I will post some info when the communication is ready ;) 

  • It's alive!

    Peter Wasilewski08/05/2021 at 20:21 0 comments

    Hey!

    Just recently I have finally finished the first Wolfie prototype: 

    Here are some assembly photos: 

    - Hip actuators mounted to the 3D printed frame:

    - Thigh actuators mounted to the hip actuators and cables routed to the inside of the torso:

    - Battery inserted from the bottom side:

    - and finally, the tibia actuators mounted to the rest of the assembly:

    I also created a short demo of the body kinematics using a PS3 pad as the controller:

    The robot is still powered from a bench PSU and the commands are sent through a USB<>FDCAN, but soon I'll be able to make it completely standalone :) It looks like I should fit in 4 kg of the total mass. 

    In the end, I want to mention the presentation about Wolfie which I gave during the Reddit r/Robotics Showcase. The whole event was recorded so feel free to check that out (my presentation starts at 01:04:30): 

    https://www.youtube.com/watch?v=HLFfAnheun8&t=137s&ab_channel=theredditroboticsshowcase

    A more detailed description of the assembly is available on my blog: https://pwwprojects.blogspot.com/

    Stay tuned for more updates! 

  • More actuators

    Peter Wasilewski07/04/2021 at 22:38 4 comments

    hello!

    In this project log, I'd like to show you a few photos of my parts collection for the remaining nine actuators I need to assemble the whole robot. I've been working on these parts for like a month and a half and they're finally ready. I was able to machine them only on weekends in my free time, this is why it was taking so long. 

    The machining started with over 5 kilos of aluminum slices (140mm in diameter). 

    Because of poor surface finish (the slices were cut on a band saw), I had to face-mill both sides of each slice, and then I could proceed with milling the parts. Here is a photo of two slices after this pre-milling treatment:

    Having prepared the stock it was time to proceed with the parts:

    Since all the parts were milled in a similar manner I'll just post some photos of the process: 


    And some photos of finished parts: 

    The next step was to modify the off-the-shelf components - motors and sungears. Each QM5006 motor was disassembled and modified. The stator was taken out of the original housing, a temperature sensor was added in between the windings and eventually, each stator was pressed onto the freshly milled motor base part. 

    Four slots were milled in each rotor and top surface was face milled. Besides, the shaft was shortened as can be seen in the photos below 

    The last step was to modify the sungears so that they match the small aluminum mounts that they;re press-fitted on. If you look closely you'll see the milled lobes: 

    Right now I'm working on the controller PCB's (they all are soldered and are waiting to be tested), as well as the robot's torso. I hope to soon be able to show the whole robot assembled and standing on it's feet ;) 

    In the end a few pleasant photos of all the actuator parts: 

    Hope you enjoyed this entry!

    As always I encourage you to check out my Instagram account for more frequent updates:

    https://www.instagram.com/klonyyy/

    as well as my blog for a more detailed description:

    https://pwwprojects.blogspot.com

  • Jumping results

    Peter Wasilewski04/27/2021 at 20:58 0 comments

    This entry is kind of outdated, as I forgot to publish the jumping results on my Hackaday project page... Even though I thought I'd add a short note on it, just for the sake of completeness :)

    After completing the test stand I managed to get the leg jumping for endurance testing. The setup consists of two active actuators and one actuator being just an additional weight that the robot's going to carry anyway. It wasn't active as it lacked the control board. Even without it, I was able to test the two actuators that are most susceptible to mechanical failures i.e. the thigh and tibia motor. The leg completed the 1000 jump goal without any major issues. What's most important the actuators were completely fine (the sungear was the part I was particularly worried about). 

    Here's a short video on the jumping test: 

    Currently, I'm working on powerboard and control board PCB's and occasionally milling the rest of the parts needed for 9 more actuators. 

  • Prototype leg

    Peter Wasilewski03/05/2021 at 17:35 0 comments

    Hello!

    I did not expect to make such a long break from documenting the project on Hackaday. I was totally absorbed by my bachelor's thesis, and now when it's done, I am busy with my masters degree studies and work. Hopefully I still manage to find some time for Wolfie project and this entry is going to be about the vertical test stand and single leg prototype, that I've recently been working on. 

    The test stand was actually built from components that I had lying around - the plywood base is just an early part of my CNC machine, the rods and bearings are spare parts for my older 3d printer, the rest is 3d printed. The main column is 400mm high and hopefully it will be enough for some jumping actions. 

    To finish a single leg prototype I needed to mill aluminium parts for one more actuator. Recently I started using bigger stock diameters in order to fit three parts at once, so that the proces is sped up. 

    This way of holding the parts to the table is not the best, so next time I'm going to prepare a special cap to hold the whole part from the top

    And here's the finished gearbox case:

    The slots are to make it lightweight

    When the third actuator was ready I was able to assemble the leg prototype. There was one more thing that bothered me and it was the foot. I couldn't use squash balls like Ben Katz did (my robot is much smaller) so I had to come up with something different. The biggest issue for me was to keep the rubbery material attached to the 3d printed structure. I thought, I might use a string wrapped around the tibia end in shape of a sphere and then pour some urethane rubber onto it, so that it soaks in the material structure. The outer shape of the rubber would be controlled by a 3d-printed mold. 

    In my opinion the first prototype came up really nice (although the mold was slightly misaligned):

    Wool string is really hairy, so the urethane rubber should stick to it
    Demoulding

    After the foot was ready, it was the time to put the whole setup on the vertical test stand:

    The leg setup alone is very compact ant weights around 800g (without the cart of course). I think it is possible to fit in the 4,5kg weight goal for the whole robot. Now I need to take care of the cables and try to perform some jumping using my USB to CAN converter.

    Feel free to visit my Instagram account for more frequent updates: https://www.instagram.com/klonyyy/

  • Testing the actuator

    Peter Wasilewski11/23/2020 at 07:17 0 comments

    Hi!

    Recently I was involved in testing the actuator on my small torque test bench. My goal was to determine the maximum peak torque, maximum continuous torque, saturation current, torque constant and some thermal characteristics. The test  stand is equipped with a dynamic torque sensor, and one or two actuators - depending on the measurement goal. 

    First I measured thermal responses when different current steps are commanded. The actuator was pushing against the table with a lever in order to keep the output shaft from rotating. This is the outcome: 

    The temperature rise on vertical axis is measured from the initial 30*C. The ambient temperature was 25*C. As you can see I also tried predicting the temperature when a certain current is being applied, however this is not very accurate at very low and very high current setpoints due to the changing thermal resistance. The continuous torque that can be applied infinitely without overheating is about 0.875Nm (if we assume 65*C is the actuator maximum allowed temperature).  

    Next I turned on the torque sensor and commanded currents from 1 to 30A in q axis. Near the 30-amp region the motor was heating up rapidly, so each test was really short (<8s). Here is the plot: 

    In the linear region the torque constant is about 0.125Nm/A, however above 23A the characteristics starts to bend due to motor saturation. It can be accounted for in order to get a linear response over a wider currents range (just like Josh did: https://jpieper.com/2020/07/31/dealing-with-stator-magnetic-saturation/), however for now it is not my primary goal. 

    The peak torque I achieved was about 3Nm at 30A phase current. I did not want to go further as the whole setup heated up very rapidly. There's still some room for improvement and increasing maximum current, but for now I decided this to be the safe area of operation.

    If you are interested in more detailed description feel free to visit my blog: https://pwwprojects.blogspot.com/

  • Motor module prototype is ready!

    Peter Wasilewski11/07/2020 at 09:22 0 comments

    Hi, 

    I finally managed to mill all the parts of the motor module I showed you in the earlier log. The material used is PA6 2017 T4511 aluminum bought at my local materials shop. Its great for milling, no clogged endmills etc, and at the same time it has great mechanical properties. I purchased it in 70mm cylinder slices, which were cut on a band-saw. Afterwards I faced each slice and mounted it to the table using screws. Machining of the module took me about 5-6 days, considering I machined one part a day. The amount of time the endmill was cutting the material was actually really short - the most time was spent on preparing the gcodes and making adjustments or fixing the material to the table. Only one part required probing, but it turned out really well. If you want to read more detailed description: https://pwwprojects.blogspot.com/ 

    Right now I'm improving the motor controller's code and making FDCAN communication to work (the bootloader is now functional)

  • Motor Controller PCBs

    Peter Wasilewski11/07/2020 at 09:21 0 comments

    Hi!

    Finally the PCBs have arrived. I guess I imagined them a bit bigger, as I was surprised by how small they really are. The outline is just 33x33mm, so I will be able to fit it behind almost any of my smaller BLDC motors. Since I last wrote I've been working on the software of the controller. For now I'm able to perform some basic operations on the motor as spinning in the non-feedback mode (voltage mode) or current feedback mode. The controller is also able to do a magnet offset calibration as well as encoder non linearity calibration and save the calibration lookup table in flash memory. Though everything seems to work fine at first glance, I still get annoyed by the irritating sound coming from the motor. I even wrote a post on the TI forum (https://e2e.ti.com/support/motor-drivers/f/38/p/921831/3412724#3412724) but the issue is still unresolved. I will investigate it further someday, however right now I'm out of ideas. 

    My first approach to paste soldering using a stencil. I'm really happy with the result although the paste was not a high quality one.
    Finished PCB
    I do not know what happened here. Wasn't expecting much from 13$ 4-layer PCBs, but the vias' shape look really bad, the soldermask is superthin and gets scraped off really easily. The overall quality is really low and is appropriate only for prototyping.

    Right now I'm working on a mechanical casing and planetary gear for the motor module. I managed to mill some prototype parts and it looks promising, however I'll tell more when the first prototype is ready. The biggest issue for now is the backlash of the planetary gear extracted from cordless drill. On a 3d printed prototype, I get roughly 1.5* of backlash when the motor shaft is stalled. I believe I'll be able to take it down to 1* or less with a bit of precise machining. Even though it seems much when I remember that triple stage planetary reducer for a drill cost me about 5$ each I guess it is a decent outcome anyway. Below a few random photos from prototyping process:

    3d - printed motor module prototype
    PCB cap from the top - notice the milled radiator fins for cooling the MOSFETs and driver IC
    Bottom of the cap with two cable slots.
    removing the stator from the original mount. If you want to read more about the milling machine itself: https://pwwprojects.blogspot.com/

    When I'm ready with a fully machined prototype I'll write an update ;) 

  • Motor speed measurement, FMAC peripheral and a dyno

    Peter Wasilewski11/07/2020 at 09:20 0 comments

    Hi!

    It's been quite some time since I last wrote a project log, however this was mostly caused by shipping problems of my new actuator PCBs as well as some exams and projects going on on my university. 

    I do not like to waste my time so in the meantime I started working on a small size dyno for characterizing small motors (without the gearbox, so the load capacity is not very big). I made my own dynamic torque transducer and a small frame for the sensor. The motors (absorber and test motor) are mounted on each side of a small plate and their shafts are connected to the torque sensor's shaft through couplers. As I was sick of waiting for the PCB's to arrive I decided to mill a similar 2-layer board with a chopper functionality, to make it possible to operate as an absorber (not only a motor controller). This functionality is going to be used on the absorber motor in order to dissipate the energy produced by the motor under test. Besides I added USB connection for exchanging the data with the computer and a communication module for communicating with torque transducer. I found out that I was missing a pullup resistor on a MOSI line of the MOSFET driver, so it's good that I tested it before reordering the PCBs. 

    A few photos of the prototype board: 

    I'm still working on the code, but for now I managed to spin the motor, read currents and read velocity in a slightly different manner than before. I'm using the method of measuring time between encoder pulses using two timers. This was introduced on Ben Katz's blog a few years back. However in contrast to the software filtering technique he has used, I used the FMAC peripheral. This is a new peripheral that comes with the G4 series and it seems to work just fine. It is a simple FIR filter (moving average) but it seems to be a bit faster than it's software equivalent. 

  • CAN Bootloader and a CNC milling machine

    Peter Wasilewski11/07/2020 at 09:18 0 comments

    Hi!

    That is why I’ve been working on something else. Having remembered how difficult upgrading 12 controllers mounted on a robot was, I decided to write a custom CAN bootloader. I didn’t want to use the built in CAN bootloader, because it cannot be customized and as far as I know it has some bugs. I found some very helpful information online, as I was not quite familiar with the booloader convention: 

    -Josh's Pieper's blog: https://jpieper.com/2020/01/24/can-bootloader-for-moteus-r4-x/

    -Kevin's Cuzner's blog: http://kevincuzner.com/2018/06/28/building-a-usb-bootloader-for-an-stm32/

    After reading these guys’ work and going through some source codes I had a fundamental understanding of the whole bootloading process. 

    The code was tested on a previous version of my controller and a f476 nucelo board serving as a USB <=> CAN converter. The converter is used as a translator between the serial data sent from the computer and CAN bus. An additional byte in the serial frame indicates a CAN command ID. The rest is just data. 

    USB <=> CAN converter.

    The bootloading procedure:

    When the slave device is in bootloader mode it can receive a few different CAN commands. The host computer executes a python script, which first opens a firmware file and sends a command to the destination device about the size of memory to erase.  After a successful erase process the slave device sends an "ok" message and the process of firmware download is started. The script sends chunks of firmware to the slave device. After a preset number of bytes is sent, the computer script sends a CRC code and pauses. If the code matches with the slave's internally computed code another "ok" message is sent to the master device. The whole process repeats until the end of the *.bin file is reached. In the end the computer transmits a reset command, and the new firmware is started.

    Bootloader mode is entered only when the soft reset occurred and the master device sent an appropriate command within a 1,5 second time window. For now any other reset causes an immediate jump to the user’s code. I find this quite useful, because when the drivers are powered on I want them to start executing the firmware without any delay, and the bootloader mode can be easily entered through a special CAN frame resulting in soft reset. The bootloader is still in development stage, as I'm still waiting for the PCBs.

    I came across one mistake on the CAN<=>USB converter PCB. The new G4 series is capable of using boot0 pin as any other GPIO. Without much thinking, I remmaped CAN FD interface to the PA8 (boot0) /PA9 pins. This resulted in entering the bootloader mode each time the device was powered on and a normal startup was not possible (the rxd pin of the transceiver is pulled high when the bus is recessive). A quick fix was an NPN transistor between the rxd and gnd, with a small capacitor on it's base connected to the 3.3V rail. When the voltage is applied the empty capacitor is draining current and thus opening the NPN transistor which, for a really small period of time, shorts the PA8 pin to the ground. When the capacitor is charged up the transistor opens, and does not interfere with the communication process. In the second revision I'm just going to use the dedicated standby pin of the transceiver ;) 

    CNC milling machine 

    Another thing I wanted to mention is the cnc milling machine I’ve been working on for a couple months now. It was meant to mill small parts for my walking robots, mostly aluminum and plastics. The working area is about 300x300x130mm, so I’m able to mill even medium size parts such as robot’s leg fragments. For now I have only tested it in laminate and PA9 aluminum (which is an excellent material for milling). I still have to replace the supported shafts on the Z axis with linear rails, but I’m quite happy with the results right now. Below you can see a two layer board of the CAN<->USB converter, and an aluminum clamp.   ...

    Read more »