Recent content by Integrand

  1. I

    What is the best language for programming microcontrollers?

    This is wrong. C++ is a multiparadigm language and has been for a long time. Consider the STL. That is not an object-oriented design. Some or none of the traditional OOP techniques may be used freely together with procedural and generic programming. There is increasing support for a...
  2. I

    Arrays/vectors without knowing type

    Do not store raw owning pointers in a vector. This obsolete, dangerous code with new and delete will bite you. As other answers have said, when the container goes out of scope, the pointers will be deleted but not the objects they point to. What other answers have not said is that naive manual...
  3. I

    Tutoring C++ in HEP: Challenges & Common Questions

    Roughly yes. It gives more opportunity for error. RAII is preferred in modern C++. In general, we create objects by value, and their destruction is guaranteed when they pass out of scope. When an object must live beyond the lifetime of the scope in which it was constructed, std::unique_ptr...
  4. I

    Tutoring C++ in HEP: Challenges & Common Questions

    Much depends on how you plan to teach C++. It has often been taught as "C with extra stuff", that is, starting with C style. There is an obvious historical basis for this, both in the language's evolution and in the prior experience of those teaching it. Modern C++ has changed very...
  5. I

    Boost converter output voltage spike on startup

    His measurement is ac coupled, but as you say, it's odd that the initial rise is missing. OP, what you are seeing is typical of the inrush current caused by charging the dc bus capacitor. For this reason, most boost converters have a controlled startup sequence. You can find plenty of...
  6. I

    Studying Not doing well in a class -- Teacher is abusive. help please

    I'm going to ignore the question of whether your portrayal of your professor is accurate. I will assume it is for the sake of argument. If going to the professor for help is not working for you, a stopgap is to go to a TA. That's what they are there for. One needn't even have a grievance...
  7. I

    Help with operating an optoisolator

    First you stated that the 360V input was fixed, then you stated that it varies. What is the problem you are trying to solve with this circuit? I should wait for your clarification rather than guess, but does the 360V represent the peak of a 240V ± 6% ac source that you are trying to read...
  8. I

    Ac-dc adapters in series (or parallel)

    How about a google search for "5v 3a adapter"? You could find the answer yourself in mere seconds. Your question seems to be wandering all over the place. Are you falling into an xy problem? (Google it.) What is it you want to do?
  9. I

    Alternating Current, live and neutral wires

    You need to revise the concept of voltage. Saying that a single wire supplies 230V is incorrect. Ditto with the neutral wire at 0V: 0V with respect to what? (Thinking of earth?) How does this apply to two-wire systems? Saying that a point in a circuit is at such and such a voltage is only...
  10. I

    Connecting a Diode: Tips for Li-Ion 18500 Battery

    I agree with you. I was basing my comment on the apparent vias to the inductor on the second of the pictures in the OP's ebay link to the driver. We still need more information. Even if these connections are correct, we still can't say whether it is a correct circuit without knowing the...
  11. I

    Connecting a Diode: Tips for Li-Ion 18500 Battery

    I remain unconvinced that <5V indicates 5V. Curious to know more, I just tried an ebay search and found numerous variations of this driver. It is indeed a boost circuit decided to run off cells like those the OP has chosen. It seems the output voltage of the boost circuit is 5.5V. I remain...
  12. I

    Connecting a Diode: Tips for Li-Ion 18500 Battery

    It states <5V and looks like a boost circuit so using a 3.7V cell could make sense. It's hard to say without more information about the design than that photo shows. About the connections, at first glance they look fine, if you check both sides of the board. What am I missing?
  13. I

    Why is voltage constant in a wire?

    EMF is one of those tricky historical terms we have to cope with despite their potential to mislead. I believe the point being made is that despite the name, electromotive force is not to be equated in any way with mechanical force.
  14. I

    Python Doublecheck, find occurrences of an element, in a list

    At a guess this is a failure of Skulpt. If my guess is right, that's terrible. Use a standard Python interpreter.
Back
Top