▲ 1 r/Altium

How to best clean up schematic?

https://preview.redd.it/qqtp5e0xn9th1.png?width=904&format=png&auto=webp&s=69528fc02b7b51bd203576a169947cf3fcff6806

Hiya. I've been working on this project lately and I've found that it's starting to get a bit unorganised - particularly from the amount of series resistors and test points on my signal lines.

At the moment, I have the test points and resistors on my top-level to keep the clutter out of the individual sheets, but it's just made the top-level a mess.

I'm heavily inclined to use buses and signal harnesses, but I'm unsure how I would attach the individual test point and resistor for each signal without distributing them across all my sheets and basically just moving the mess around.

Any tips? Thanks!

reddit.com
u/Ok-Highway-3107 — 12 days ago
▲ 7 r/PCB

When are damping resistors needed?

Hiya. I'm developing a PCB at the moment and I was wondering whether I actually need damping resistors or not for my design. For context, I've been designing my boards with a limited budget and I've included them just to avoid any risk of my board not working and requiring a redesign (22-47 ohms), but now that I have some more money and need to make the board smaller, are they actually needed?

For context, I am using an STM32 (max 100 MHz signals) and I have parallel NOR flash for the extended memory option, as well as several other interfaces each in the 100MHz range. Is there a certain speed or application when dampings are required?

reddit.com
u/Ok-Highway-3107 — 2 months ago

How to calculate STM32 peripheral speeds?

Hiya. I'm just wondering how I can go about calculating the effective speed of my OctoSPI peripheral on my STM32U575 given the set frequency in the clock configuration panel and prescalar. I'm just having some inconsistencies with the speeds (edit: I am using QuadSPI)

I just ran a test with OCTOSPIM1 at 128 MHz and prescalar=2 and it took 116ms to write 131kB of data. I then tested it with prescalar=256 and it took 113ms.

On a different test, I used OCTOSPIM1 at 16 MHz and prescalar=5 and it took 264ms. On another OCTOSPIM1=32MHz and prescalar=2 and it took 120ms.

To me, there's just appears to be no correlation between the OSCTOSPIM1 speed, prescalar, and the actual speed.

I thought the calculation was F=f/(N+1) or something of the like, but that doesn't make sense with the prescalar=256 test as 132kB is 1 Mbit, over four lanes is 250 Mbit. at 500kHz, that's approx 500ms, just for data transfer, ignoring dummy cycles, instruction, address, etc. so I don't know how it would take 113ms at all.

For reference, this test that I'm doing is writing "1,2,3,4,...,127,1,2..." to external memory and reading it back to make sure it's all the same.

https://preview.redd.it/ye9s317dklfh1.png?width=746&format=png&auto=webp&s=dc9c80a35eae29e64f0c1a8e36b71531c6edd0f4

Any help would be greatly appreciated, thanks.

reddit.com
u/Ok-Highway-3107 — 3 months ago
▲ 2 r/curtin

MXEN4000 Mechatronics FYP

What do we actually have to do during FYP? I know that it's about our selected research project and at the end we have to submit it and at the end of Semester 1 we have to submit a progress report, but what do we actually do in the first semester aside from "work on the project". Is there anything specific that we need to do, or do we just work on the project?

reddit.com
u/Ok-Highway-3107 — 3 months ago
▲ 7 r/stm32

Clock configuration power consumption

Hiya. I'm working on a project that should save as much power as possible. I've noticed in the clock configuration panel that certain configurations consume more power e.g., one 18 MHz clock configuration consumed two times more than a 24 MHz clock config.

I was wondering how I should be balancing prescalars and multipliers. Do certain ones lead to a higher power consumption than others?

Thanks !!

u/Ok-Highway-3107 — 4 months ago
▲ 3 r/stm32

How to get USBX working STM32CubeIDE

I'm using an STM32U5 and I'm trying to open a virtual com port just to transmit some basic data over USB, but this chip uses USBX and THREADX instead of the USB DEVICE that the other chips use. Almost all of the tutorials I can find online aren't updated for USBX and after two days of working on it I still haven't got it to work (even AI can't get it working).

Any tips? I've tried adjusting priorities, heap and stack sizes, toggling interrupts, moving functions around, etc. The USB clock is operating off my HSE so it's not internal drift.

The most I can get is an unknown device to appear in device manager 10-20 seconds after executing that has description errors. I can confirm that the USB D+- pins get pulled high, but almost nothing else is working.

I'm not a fan of the RTOS overhead that THREADX has so it's been a bit challenging to work through this.

reddit.com
u/Ok-Highway-3107 — 4 months ago

How to get USBX working STM32CubeIDE

I'm using an STM32U5 and I'm trying to open a virtual com port just to transmit some basic data over USB, but this chip uses USBX and THREADX instead of the USB DEVICE that the other chips use. Almost all of the tutorials I can find online aren't updated for USBX and after two days of working on it I still haven't got it to work (even AI can't get it working).

Any tips? I've tried adjusting priorities, heap and stack sizes, toggling interrupts, moving functions around, etc. The USB clock is operating off my HSE so it's not internal drift.

The most I can get is an unknown device to appear in device manager 10-20 seconds after executing that has description errors. I can confirm that the USB D+- pins get pulled high, but almost nothing else is working.

I'm not a fan of the RTOS overhead that THREADX has so it's been a bit challenging to work through this.

reddit.com
u/Ok-Highway-3107 — 4 months ago

Suggestions for car console functionality?

My current car (i30 2010 ish) has a custom centre console (basically a tablet) that's been a big upgrade from just the audio player it has before. One thing I've found annoying is that the only things I can interact with are the preset buttons (volume up/down, hangup, etc.) and they're on the far side of the console, meaning I have to go one handed whenever I want to change the song or enter (via Google assistant) for directions. It is touchscreen, but it's kind of useless when I'm driving.

I was wondering if there's any functionality I could include on my steering wheel to make interacting with the console easier. A few other cars I've driven have this natively on the wheel, like skipping songs, voice assistant, etc.

​

I haven't started this project yet since I don't want to mess about with opening a steering wheel up, so I'm coming to the community for suggestions! Ideally it's just a set of buttons that I can map to certain commands on the console.

​

In terms of what I'm actually in need of, I can sort out the mapping side of things and programming it on the console, I'm just unsure how to go about putting the buttons on and what type of buttons I should be using. For reference, the steering wheel has no buttons on it.

​

Thanks!

reddit.com
u/Ok-Highway-3107 — 4 months ago

How to make embedded STLINK circuit?

Hiya. I was wondering how I would go about making an embedded STLINK circuit like those found on Nucleo boards. Is there a specific IC that I have to use, or is it just interfacing with another STM? If the latter, how do the two STMs interface?

If there are any resources or examples of people who have done it already, that would be much appreciated :).

reddit.com
u/Ok-Highway-3107 — 4 months ago

How much of a safety margin do I need with LDOs?

Hiya, I was wondering how much of a safety margin I need with the input voltage to an LDO? Most of my applications just use USB (5V), so I'm curious what the recommended input voltage rating should be to handle transients?

Compounding on this, what would the safety margin be in situations where the input voltage is guaranteed to have an upper limit e.g., output from a buck into an LDO? I've found some amazing LDOs to use, but they have a rating of 5.5V (edit, absolute maximum of 6V) which makes me quite hesitant.

reddit.com
u/Ok-Highway-3107 — 4 months ago
▲ 12 r/PCB+1 crossposts

Multicore design resources?

Hiya. I recently watched Bitluni's 256-core RISCV processor video: https://www.youtube.com/watch?v=lh93FayWHqw, and was wondering how I would go about making something similar (on the multicore/embedded side of things). I'm interested to take on a similar project (on a much smaller scale, maybe 2-3 cores), but I'm not sure how to get started. Are there any textbooks/resources to get started on this kind of thing? I'm not sure what processors would even work for this, let alone how I would get it working in the first place!!

Any help is greatly appreciated :).

u/Ok-Highway-3107 — 5 months ago
▲ 1 r/curtin

Why do I need to submit to multiple submission portals?

I've just submitted a final report, but there were two submission portals: (1) a Turnitin portal to submit the actual report to; (2) an LMS submission portal to submit the Turnitin similarity report. Question is, why two portals? Every other unit I've had submits just through one or the other, not both.

Another question (bit of a tangent), but why are we sometimes limited to a single upload? Personally, I don't see the downside of resubmissions because tutors just always mark the latest one. It feels like more of a hassle having a single chance because then you have to go about emailing the UC and sorting the situation out.

reddit.com
u/Ok-Highway-3107 — 5 months ago

The project is done, now what?

I've just finished a step-down voltage regulator project, that regulates the voltage from 4x 18650 batteries to a desired output voltage using the LM317T.

The board uses a rotary encoder to track the voltage the user sets, then a digital potentiometer sets the voltage on the adjust pin of the LM317, and the output voltage is divided and fed back to the microcontroller to complete a feedback loop.

The project worked quite well with output error of 18mV on average. It was just meant to be a learning project, not being applied to anything.

Now that I'm done with the project, I'm curious whether I should expand the scope and go for another revision or move onto another project. Again, I'm not making this for any reason other than just to learn. Let me know some ideas you guys have that I could implement and I'll see whether it's worth going for v2.0!

Some ideas that have been thrown my way so far:

- Adding fuel gauge ICs to track battery charge

- Allow me to charge the batteries whilst they're connected to the board (instead of taking them out and charging them).

reddit.com
u/Ok-Highway-3107 — 5 months ago
▲ 107 r/LaTeX

I'm starting to learn Git and I'm trying to implement it within my regular coding practices, but I was wondering whether you use it for LaTeX? I'm aware Overleaf has version history, but I've always used MiKTeX. Is Git actually useful / what do you guys use it for if you use it? Is its only benefit recovering or looking back on old content?

reddit.com
u/Ok-Highway-3107 — 6 months ago
▲ 1 r/PCB

Hiya, I'm making a linear voltage regulator, not for any application (just to make it). It should be able to regulate a 14.8V input (4x18650 batteries) to a voltage between 2.16 V and 13.3 V. Feedback on any potential issues would be greatly appreciated before I move onto PCB/procurement !

The following is a breakdown of each subsystem:

  1. The 4x18650 3.7V batteries are in series for an output of 14.8 V, VBUS. No extra circuits.
  2. The VBUS voltage is regulated by a 5V LDO for other circuitry. LDO: L4941BV
  3. VBUS is fed into the LM317T linear voltage regulator. The variable resistor is controller by a 100k digital potentiometer. To ensure the maximum current on the dig pot isn't exceeded, a 6k5 series resistor is included. The fixed resistor in the LM317T circuit is a 9k resistor.

Overall, this should provide a 2.16-13.3 V swing. I have assumed a drop out voltage of 1.5V based on potential applications from the dropout voltage curve on the datasheet. The output is VOUT.

  1. VOUT is connected to a differential op amp to detect the output voltage and send an analog output to the Arduino Nano.

  2. A rotary encoder allows the user to set a desired output voltage.

  3. Based on the rotary encoder value, the Nano sets the digital pot resistance and uses the differential op amp to form a closed loop feedback system for improved accuracy. The output divides by 0.333 to get the maximum output voltage (13.3V) down to 4.3V, below 5V for the ADC on the Arduino (the .7V headroom I don't mind, some margin to play with).

  4. An LCD display shows the expected output voltage.

A quick disclaimer, this isn't meant to be a very accurate system, it's just something to build my skills. If it can output a voltage within half a volt of accuracy, I'm happy :), as long as the functionality is sound.

I've selected resistor and capacitor values that have a 1% tolerance so it should be somewhat accurate, but not laser accurate.

Thanks !! Any feedback is much appreciated !!

u/Ok-Highway-3107 — 6 months ago

Hiya! I'm building an STM32 board that connects with an STM32 via USB-C over the D+/D- lines. I was wondering if there are any resources/software that let me talk to the STM directly over the USB lines e.g., if I press a button on my PC it sends a command to the STM to turn an LED on.

Preferable if it's customisable i.e., I can add as many features as possible.

Thanks !

reddit.com
u/Ok-Highway-3107 — 6 months ago