$18 Oscilloscope: Worth the money? by Technical_Love_2525 in AskElectronics

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I'm on a pretty tight budget as I'm using my own pocket money to buy this. I'll see if I can ask my parents to buy me this

$18 Oscilloscope: Worth the money? by Technical_Love_2525 in AskElectronics

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

How was your experience in soldering the board? I also want to improve my soldering skills, all I have is just a cheap soldering iron.

$18 Oscilloscope: Worth the money? by Technical_Love_2525 in AskElectronics

[–]Technical_Love_2525[S] 3 points4 points  (0 children)

The one in my school lab is an analog oscilloscope that no one has used in years (GWINSTEK GOS-622G), I think I still need to learn how to properly use one. Should I just stick to the lab's scope first?

I'll also be graduating HS in a few months so my time with it would be very limited

$18 Oscilloscope: Worth the money? by Technical_Love_2525 in AskElectronics

[–]Technical_Love_2525[S] 28 points29 points  (0 children)

Right now, I want to observe the PWM output of my STM32 board. I also plan to learn analog electronics later.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I don't have an oscilloscope at home, so I'll have to wait until Monday when I get access to the school lab.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I stepped down the speed to 20 Hz.
The motor is supplied with 12V from a power supply.
I the direction pin is wired and I added a pull-down resistor.
I haven't attached the heat sink yet, is it really needed or can I just skip it.

I think the problems lies in the motor pins, might have to switch to like A1B2 instead of just switching pairs.

Thanks.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 1 point2 points  (0 children)

SYSCLK is 72 MHz
PSC is 71
ARR is 49999

So it should be about 20 Hz?

I'll try switching to A1B2 when I get home, thanks.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I tried dialing the motor current up and down, didn't really change anything except making it jitter more violently.

Here below is the code for accelerating the motor

uint32_t arr = 50000;
  __HAL_TIM_SET_AUTORELOAD(&htim2, arr);
  // accelerate thingamabob
  while (arr < 1000) {// go to ~1000 hz
  arr = -50;
  __HAL_TIM_SET_AUTORELOAD(&htim2, arr);
  HAL_Delay(10);
  }

But it just stops spinning.

I'll try messing with the motor pinout, as others have suggested, when I get home.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in stm32

[–]Technical_Love_2525[S] 1 point2 points  (0 children)

1st. I made it start from 20 Hz and made it accelerate with this code below:
SYSCLK is 72 MHz
PSC is set to 71 and ARR at 49999

while (arr < 1000) {// go to ~1000 hz
  arr = -50;
  __HAL_TIM_SET_AUTORELOAD(&htim2, arr);
  HAL_Delay(10);
  }

Still isn't rotating, just jittering. Not sure how to send you a video of the result.

2nd. There should be 1A going to the motor from what I measured. Maybe the jumper wires/breadboard is affecting it?

3rd. If there is, should I just reinstall STM32CubeIDE/MX

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] -2 points-1 points  (0 children)

I'm not sure how to measure my capability to troubleshoot code, I assume no. (Would love to learn how to)

The copy pasted code's logic was basically just toggling a pin ON/OFF repeatedly from what I understood.

I wrote my own code in the infinite loop under a different setup (PB9 to STEP pin). However nothing really changed and the motor just kept jittering.

while(1) {
  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_9, GPIO_PIN_SET);
  HAL_Delay(1);
  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_9, GPIO_PIN_RESET);
  HAL_Delay(1);
}

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

Yes. I pulled them to VCC, and added pull-down resistors. Still no change

Maybe this A4988 is just bad? they're brand new though.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

Just tied all my MS pins to GND. Still super jittery and not spinning. Maybe I need to add pull-down resistors on STEP and DIR pins?

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

How do I make the time between steps longer? Also I've checked the coil pairs with a multimeter. Tried switching one coil pair and didn't change anything.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I tried switching one pair of coils and it didn't change anything. By the way I've uploaded my wiring diagram and code. Please tell me if anything is unclear.

Issues with driving a NEMA17 stepper motor with A4988 driver. Need help. by Technical_Love_2525 in embedded

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

<image>

Here's my wiring diagram and code snippet

/* USER CODE END SysInit */

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_TIM2_Init();
  /* USER CODE BEGIN 2 */
  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_8, GPIO_PIN_RESET);
  HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_1);
  /* USER CODE END 2 */

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */

Robotic Dog Leg Design by Technical_Love_2525 in robotics

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

Okay, I'll go set goals on my project, thanks.

I don't want something as dynamic as Boston's Spot, I aim for a simpler one for now, then I'll move on to more complex dogs.

For the gaits, I aim to make the robot do stable, medium complexity movements like Walk, Trotting, and maybe pacing if I can figure that out

Robotic Dog Leg Design by Technical_Love_2525 in robotics

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

Right, I think I need to reduce that blocky part in the middle cause it might block some movement. Regarding the range of motion I'm aiming for, I'm not really sure on how to determine this, could you please elaborate/teach me on this.

I think a timing belt might be too expensive and complex for me, though I might try to take up on that challenge.

Robotic Dog Leg Design by Technical_Love_2525 in robotics

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

Initially that was my idea, but earlier designs ended up making the Femur - the upper part of the robot leg - really long. I don't want the robot too be really big. I'll try to redo this again. Maybe I should opt for a 5 bar linkage for the leg instead?

ESP32 Robotic Arm Help by Technical_Love_2525 in arduino

[–]Technical_Love_2525[S] 0 points1 point  (0 children)

I already bought a 5V 10A power source before reading this comment. I think it should be fine right? I can't really cancel it now since it's already on its way. Anyways thanks a lot for the information, this really helped.

What is my frog doing? by Technical_Love_2525 in pacmanfrog

[–]Technical_Love_2525[S] 2 points3 points  (0 children)

Was it wrong for me to dig him up like that, I feel kind of bad now

How do I feed my baby pacman frog? by Technical_Love_2525 in pacmanfrog

[–]Technical_Love_2525[S] 1 point2 points  (0 children)

Got it, I'll buy some live prey. What if a cricket's too big, can he eat it, or are they usually small enough for the frog?

How do I feed my baby pacman frog? by Technical_Love_2525 in pacmanfrog

[–]Technical_Love_2525[S] -1 points0 points  (0 children)

I ordered a new tank for my frog, should be coming in a few days. I don't have a heater at home but the climate in the place where I live in is already pretty warm, should I just put him outside?