Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move a piezo #52

Merged
merged 36 commits into from
Jun 21, 2019
Merged

Move a piezo #52

merged 36 commits into from
Jun 21, 2019

Conversation

avikde
Copy link
Owner

@avikde avikde commented Jun 13, 2019

  • fix cube file
  • get micros working
  • IMU
  • set duty cycle as sin
  • without piezo connected get scope output plot and data of the voltage at the output
  • inductor jumper? make sure the signal is reasonable
  • ADC reading of voltage
  • closed loop voltage tracking
  • 100Hz -> 370Hz
  • try to eliminate any "noisy jitters"
  • same at higher voltage: 50?
  • connect piezo and see if the different capacitance means gains need to be changed

Sim:

  • circuit sim

Info:

Open loop (sine)

image

Closed loop results

Doc - Jun 20 2019 - 2-09 PM - p1
Doc - Jun 20 2019 - 2-09 PM - p2
Doc - Jun 20 2019 - 2-09 PM - p3

@avikde
Copy link
Owner Author

avikde commented Jun 17, 2019

Low side tests with 1nF cap at load

10KHz PWM, 1Hz sine.

LO output is showing the correct PWM @ 15V with changing duty cycle.
image

However, Vs looks like this
image

Vs at 10KHz PWM, 100Hz sine

Doc - Jun 17 2019 - 12-36 PM - p1

Vs at 100KHz PWM, 100Hz sine

Doc - Jun 17 2019 - 12-45 PM - p1

Vs at 100KHz PWM, 10Hz sine

Doc - Jun 17 2019 - 12-46 PM - p1

Vs at 100KHz PWM, 1Hz sine

Doc - Jun 17 2019 - 12-48 PM - p1

Vs at 100KHz PWM, 0.1

Doc - Jun 17 2019 - 12-50 PM - p1
Hz sine

@avikde
Copy link
Owner Author

avikde commented Jun 19, 2019

image

with 100ms period

Cyan=LO, yellow=VS
Doc - Jun 19 2019 - 9-35 AM - p1

makes sense: when the FET is on, the voltage snaps to zero even with the cap. Need the inductor to slow down the current?

with 1ms period

Doc - Jun 19 2019 - 11-24 AM - p1

@avikde
Copy link
Owner Author

avikde commented Jun 19, 2019

Questions:

  • inductor needed or not: circuit analysis ODE, and then check with no (L=0) or different L values
  • can only low side work for the low side cap? maybe not since the middle is just floating without the high side turning on

@avikde
Copy link
Owner Author

avikde commented Jun 19, 2019

Lo = yellow, VS (before inductor) = cyan
Doc - Jun 19 2019 - 12-52 PM - p1

Zoomed in
Doc - Jun 19 2019 - 12-55 PM - p1

  • as soon as lo gate turns on, voltage drops to 0, but then rises again! that must be coming from the cap

Same but now cyan is AFTER the inductor
Doc - Jun 19 2019 - 1-00 PM - p1

  • oscillations are due to LC dynamics. want slower time constant for that or faster for PWM?

@avikde
Copy link
Owner Author

avikde commented Jun 19, 2019

Still falls too fast with this LC pair.
Doc - Jun 19 2019 - 1-13 PM - p1

Looking much better with 0.1uF cap!
Doc - Jun 19 2019 - 1-26 PM - p1

@avikde
Copy link
Owner Author

avikde commented Jun 19, 2019

Open loop test result
Doc - Jun 19 2019 - 1-37 PM - p1

open loop test 2: 1MHz base
Doc - Jun 19 2019 - 1-42 PM - p1

Problem was sync (motivating feedback!) 10KHz base, 100Hz desired sine wave
Doc - Jun 19 2019 - 1-46 PM - p1

Output @ 50v pp
Doc - Jun 19 2019 - 1-51 PM - p1

@avikde
Copy link
Owner Author

avikde commented Jun 20, 2019

ADC somewhat working.

  • vmax ~300 with power off
  • 1260 (vmax[1]) at ~19.5V (from scope)
  • 1838 (vmax[1]) at ~30V (from scope)
  • 2358 (vmax[1]) at ~40V (from scope)
  • 2846 (vmax[1]) at ~50V (from scope)
  • 3390 (vmax[1]) at ~60V (from scope)
  • 3889 (vmax[1]) at ~70V (from scope)

https://docs.google.com/spreadsheets/d/1NQQbD_Zaig3STnTJG6g7wlEqw0pASV7lOaqTsuFVBwo/edit?usp=sharing
Scope readout vs  ADC at peak (1)

@avikde
Copy link
Owner Author

avikde commented Jun 20, 2019

Closed loop

Vpp = 20, gain = 0.001

Doc - Jun 20 2019 - 1-19 PM - p1

Vpp = 20, gain = 0.003

Doc - Jun 20 2019 - 1-19 PM - p2

Gets noisier, a little more accurate, but since shape is still wrong.

Doc - Jun 20 2019 - 1-19 PM - p2

Seems like the voltage rises much faster than it falls?? put a 0.5 for the rising inputs

Doc - Jun 20 2019 - 1-44 PM - p1

Sinusoid with these params

Doc - Jun 20 2019 - 1-47 PM - p1

Triangle

Doc - Jun 20 2019 - 1-57 PM - p1

@avikde
Copy link
Owner Author

avikde commented Jun 20, 2019

The piezo specs say 150V, 370Hz resonance. https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=10958&pn=PB4NB2S

@avikde
Copy link
Owner Author

avikde commented Jun 20, 2019

zoomed in 300Hz
Doc - Jun 20 2019 - 2-29 PM - p1

duty cycle being used is very small. can probably increase the number of steps?

@avikde avikde mentioned this pull request Jun 21, 2019
4 tasks
@avikde avikde merged commit d90080d into master Jun 21, 2019
@avikde avikde deleted the piezomove branch June 21, 2019 14:07
@avikde avikde mentioned this pull request Jun 23, 2019
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant