Jump to content
Electronics-Lab.com Community


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by HarryA

  1. I have for sometime now been dorking around with the MPU6050. I started out using Joop Brokking's code for a quadcopter but put it aside to educate myself on the PID software and the MPU6050 software. As you say there always seems to be problems with the MPU6060 code running away - the output of the formatted code seems to increase without limit. I am working with Joop Brokking's balancing beam code with and without the motors he uses to demonstrate using the MPU6050 and using the PID control software. That has the same problems. I migrated to Dejan_code.ino code because of its simplicity. That has stable 'raw' outputs of the MPU6050. And is well behaved; in that if you rotate the MPU6050 to some angle it shows some stable raw value and returns to the zeroed values on rotating it back to zero angle. The values around zero angle only vary by plus or minus 10 or less - I call that stable. That code contains a calibration functions that displays the values required to correct the raw outputs to near zero. These values are used later within the code for corrections. Manually updated. I am currently using this code to understand why the formatted code output is unstable by displaying the values at various stages in the program. I also looked the Digital_Level_v1.ino code (the yellow level) but had problems getting it to compile. I get an error "no 'uint8_t MPU6050_Base::dmpInitialize()' member function declared in class 'MPU6050_Base'" related to the MPU5060_6axis_MotionApp20.h file. This code is just to complex for me at this stage for what I want to do. The Dejan_code.ino code is perhaps the beat code to learn about the MPU6050 from. No PID! https://howtomechatronics.com/tutorials/arduino/arduino-and-mpu6050-accelerometer-and-gyroscope-tutorial/
  2. SQ2LA appears in these two by Google advance search but I could not find any info at the web site: http://www.smdmark.com/en-US/ic-492522.html
  3. You may find the ESP8266 WiFi transceiver interesting: https://circuitdigest.com/microcontroller-projects/getting-started-with-esp8266-module
  4. Sorry I can not help you. I would be challenged doing it with a microcontroller: https://arduinogetstarted.com/tutorials/arduino-send-email
  5. I used a infrared transistor as a detector and diode emitter to make measurements on my quadcopter by having the blade pass through a gap with one on each side. You can get similar optical detector devices already mounted in pairs and separate them I would think. See this one for example: https://www.ebay.com/itm/402866611861?hash=item5dccb8a695:g:uUEAAOSwby1gql8L or unmounted: https://www.ebay.com/itm/274298671466?hash=item3fdd79916a:g:j~YAAOSwWNNdp9Dl The data sheet with circuit can be found here: https://www.digikey.com/en/products/detail/omron-electronics-inc-emc-div/EE-SG3/31139?s=N4IgTCBcDaIAQHkBKBWADAFgLQDkAiIAugL5A Perhaps an enclosure like this?
  6. It is some where in here: So a henry = an ohm per hertz? see: https://en.wikipedia.org/wiki/Henry_(unit) See the RL calculator here: http://learningaboutelectronics.com/Articles/RC-RL-time-constant-calculator.php#answer2 I will try it in the tina-ti simulator - we have a mutual dislike for each other!
  7. It takes in the order of 200ms for the current to reach maximum in the simulator. The current through one coil is about 1.18 amperes. The voltage across the coils is about 200kv - you better wear rubber boots! Perhaps the simulator got carried away. There is an equation: time = inductance/resistance = 63% of the charge. So t= 0.380h /10 ohms would give 38ms. That would give 0.74amps at 48ms (38ms + 10ms pulse on delay) in the second waveform. That seems about right; at the white dot.
  8. Using the circuit below with an 2.5ms wide pulse at 10v with rise and fall times of 100ns in the simulator I get the wave forms below. The green trace is the input at the base of the mosfet, the yellow trace is the current through one of the coils while the red trace is the voltage across the coils. I will try increasing the pulse width until the current reaches steady state and see what is looks like and post it later. I do not understand the current.
  9. Looks impressive! Do you have an idea of the inductance of the coils? I could play with it in the simulator.
  10. Is the pulse width large enough for the coil current to reach maximum? I would think current should get to something like (12v - mosfet saturation voltage)/Rcoil. Also the break down voltage of the mosfet and its diode may come in to play at high voltages? for others:
  11. I am not sure about their graph either. You could try playing around with a capacitor but I am not sure how much it affects the voltage drop rate at the output. As you are 95% there why not use an electronic ignition circuit? There are numerous circuits like this one on the internet. You could get up to a few thousand volts then!
  12. They often use a diode across your R5, I gather to discharge the gate capacitor to speed it up. See this link and click on the "simulate transient" for the IPP60R099CP. https://design.infineon.com/tinademo/designer.php?path=EXAMPLESROOT|INFINEON|Applications|Industrial|Power|&file=power_MOSFET_compare_450V.tsc&act=change.U.Infineon.IPP60R099CP_L0 I wonder if the turn off delay of the 555 propagates through the circuit? The 555 off time is 2us compared to the equivalent timer 1455 at 100ns.
  13. I gather you are using the output from your speaker as input rather than a microphone. In the simulator I get, with zero signal, about 580mv dc at the transistor base and 600mv dc output (pin14). Using 1k sine wave at 10mv as input I get, at the transistor base, a signal between say 670 - 690mv, At the output pin14 0 to 3.5v. Using a 2SC2412K in the simulator which I believe is similar to the 9014.
  14. I gather you are employed by Kynix. 🤑 For others: That would be a very large impedance mismatch. The speaker impedance is 4 to 8 ohms while the impedance into the PC is in order of 1k to 20k ohms.
  15. How do you deal with a SMD that has 36 leads?
  16. As you have posted this question on numerous forums I will leave it up to them to answer your question. Good luck.
  17. These motor controllers may interest you: Motor control Info on Youtube here: Review of control And more info here: More motor control. Reading the reviews/comments will give you more insight. Could one mount the potentiometers into a joystick control mechanically; some type of gimbal mount? Adding push button switches to the control to reverse directions would be doable I think. There maybe game type joystick controls that have them already built in?
  18. You may find one of these helpful; you could add LEDs as required: https://www.amazon.com/s?k=Digital+Clock+Kits+Circuit&ref=nb_sb_noss This one shows the circuit diagram, you make find the manual online for it? DIY timer circuit I like this one the best; try taking that to work. Fake time bomb If they are not helpful come back and we will try for a circuit if you like.
  19. "LTspice® is a high performance SPICE simulation software, schematic capture and waveform viewer with enhancements and models for easing the simulation of analog circuits." There are numerous tutorials and manuals for LTspice online. You can import component models not in its library into it using other spice models. see: https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html A circuit in LTspice:
  20. Are you using the type of actuators that have brushed motors ? I gather they have switches that limit their travel in each direction. Also I see that folks are building controls using microcomputers like the Arduino but that seems like the hard way of getting one. Are your actuators similar to this one? https://www.amazon.com/dp/B079G1NZHT/ref=emc_b_5_t?th=1 also look at these: https://www.progressiveautomations.com/collections/control-boxes? I gather their 30 amp dual controllers are only 15 amps each. They have joysticks here: https://www.progressiveautomations.com/products/rc-08 This is like what you have now? https://www.amazon.com/Forward-Reverse-Module-Actuator-Reversing/dp/B0881N7F4M/ref=sr_1_53?crid=25CETHKMKA6N1&keywords=linear%2Bactuator%2Bcontroller%2B12v&qid=1637517171&s=industrial&sprefix=Linear%2BActuator%2BController%2Cindustrial%2C232&sr=1-53&th=1
  21. It is very difficult to help someone with home made circuits as there so many things that can go wrong. Like bad components, poor solder joints, miss read schematics, etc. The transformer you are using has two secondary windings of 6 volts rms (8.4 volts peak) each, what are you getting for voltage out of your power supply? I gather you need 15v dc.
  22. One could use a pair of Arduino mega 2560 microcomputers each has 16 analog inputs. Using two boards each monitoring 10 cells. As each cell is measured relative to ground from the its first cell the additional voltage would indicate the voltage on that cell, That is if the voltage at the 5th cell where say 6.5v to ground and the 6th cell where 7.9v the computer would "know" that cell is at 1.4v and thus charged. It would switch it out of the circuit and replace it with a shunt resistor. Also there are Arduino devices to monitor current up to 5 amperes using a Hall effect device.
  23. In the circuit above the 2SD1805 is an NPN not a PNP as required. The TL431 is a precision programmable reference. I could try the circuit in the simulator if I can find a spice model for the TL431 or otherwise simulate it. I see: "The 2SB1205 is a complementary PNP transistor for the 2SD1805." Characteristics of 2SB1205 Transistor Type: PNP Collector-Emitter Voltage: -20 V Collector-Base Voltage: -25 V Emitter-Base Voltage: -5 V Collector Current: -5 A Collector Dissipation: 10 W DC Current Gain (hfe😞 100 to 400
  • Create New...