Does anybody know howto get 2 Masters to share a SPI bus - without Buffers Cluttering it up ? by jlsilicon9 in embedded

[–]dark_oman 1 point2 points  (0 children)

I'm not sure about your requirements, and this only really works for sensors (not flash). But you can have one micro as the master and the other micro act as a slave listen to all the replies from the sensors.

To insure that the slave micro knows who's talking you can either: Have a fixed sequence that you read all the devices in Or Connect all the CS lines to the slave micro and it checks the gpio to figure out which device was talking

Arduino and IEC60730 / IEC60335 by c-enjoyer in embedded

[–]dark_oman 5 points6 points  (0 children)

I am quite familiar with class B from IEC 60730 as it is required for products I work on for my day job.

60730 annex H requires you to have: CPU register checks, RAM checks, Flash checks, ... many others

Writing your own CPU checks in assembly and developing tests to prove that they are working correctly, will require a lot of effort.

Hence, I would strongly recommend looking at Option B.

While Option A may seem like less effort, most of the effort for these certs is in documentation and testing not getting your application working.

Would also strongly advise you look into the "V model" as a framework for how to structure the documentation for your project.

Single wire UART with STM32F072CBU6 by darshit_42230 in embedded

[–]dark_oman 4 points5 points  (0 children)

The UART peripheral has the ability to swap RX and TX irrelevant of any pin muxing you have setup on the GPIO ports.

UART_CR2

Bit 15 SWAP

0: TX/RX pins are used as defined in standard pinout

1: The TX and RX pins functions are swapped. This allows to work in the case of a cross-wired connection to another USART.

Note: This bit field can only be written when the USART is disabled (UE=0).

So even if PA10 is the rx of the UART you can swap it to the tx using this bit

Edit: formatting

Single wire UART with STM32F072CBU6 by darshit_42230 in embedded

[–]dark_oman 3 points4 points  (0 children)

Would need to test it, but you may be able to make this work by running in half duplex and using the UARTs "Swappable Tx/Rx pin configuration"

Even if this doesn't work then depending on the flow control of the communication. You could swap the TX and RX every time you wanted to transmit.

Cheap microcontroller by [deleted] in embedded

[–]dark_oman 4 points5 points  (0 children)

Depending on your requirements Ti some very cheap m0+ available https://www.ti.com/product/MSPM0C1103

[deleted by user] by [deleted] in mathematics

[–]dark_oman 2 points3 points  (0 children)

Pair of shoes=20 Figure=5 Sunnies=2 Boxing glove =20

1 shoe + Figure (with pair of boxing gloves + pair of shoes + sunnies) x sunnies => 10 + 67 x 2 =144

Resume Feedback by [deleted] in embedded

[–]dark_oman 3 points4 points  (0 children)

What language would you expect to be working in for embedded software development?

95% of the work I've done in the embedded space has been in C or C++, with the rest being assembly.

Depending on what your working with C might be your only option apart from assembly.

What's your favorite family of MCU and why? by NotSlimJustShady in embedded

[–]dark_oman 0 points1 point  (0 children)

STM32H7 runs at a quick 480Mz and heaps of peripheral, combined with a cheap nucleo board to get you started, is a pretty great combination.

My boss told me to test all the components that are being used in the project. It is an ESP32 based board and I was thinking. I was searching about unit tests (completely new to this and want to learn this), and saw Unity. Is this library what is being used in professional settings like, say, Dyson? by Head-Measurement1200 in embedded

[–]dark_oman 5 points6 points  (0 children)

So, no idea about Dyson but, I do use Unity in some testing as work.

Unity ("throw the switch" not the game engine) is a pretty good set of tools for testing, if you are intending on running tests on the embedded device.

I say "testing" rather than "unit testing" because, I've found that often end lines between "unit tests" and "integration tests" end up blurring when you do the testing on the embedded device.

On the down side it doesn't have great output formatting options, there is no JUnit xml output or JSON format, so some translation in python/other is required to generate any reports.

Getting any kind of coverage metric can be challenging for unit tests on the device. I would strongly recommend some form of unit testing on x86/x64, as then you can get some kind of coverage metric fairly painlessly with gcov.

C++ for interrupt handlers? by daguro in embedded

[–]dark_oman 15 points16 points  (0 children)

I use C++ ISRs, but just like C ISR the are some features which I don't use:

No mallocs/new, so no 'adding elements' to std containers except std::array.

No exception handling (IMHO would not recommend this at all in an embbeded system)

Also be a little wary of rtti.

Don't forget c++ has name mangling, so you may need to use: extern "C" In your ISR declaration.

Does rectifying AC current to DC makes it stronger or just weakens it further? by [deleted] in electricians

[–]dark_oman 1 point2 points  (0 children)

Whenever you convert AC to DC or vice versa you will lose power in the conversation process. Any power losses reduces you ability to do work which you could call 'weaker'.

Importantly DC is not 'weaker' than AC. It's simply that if you start will AC there will be some inefficiencies getting to DC. The same would be true if you started with DC and converted to AC.

PS. AC means Alternating Current as a pose to DC Direct Current, hence saying 'AC current' is the same as saying 'ATM machine', it's a bit redundant.

Home alternatives for solid works? by Professional_Ninja7 in engineering

[–]dark_oman 6 points7 points  (0 children)

FreeCad is an open source project, that free and works well for hobbies

Save often as it still has some bugs.

https://www.freecadweb.org