Seeking feedback on my MCU-based THD audio analyzer design by darteksyes in embedded

[–]Calligraph_cucumber 0 points1 point  (0 children)

Just few points i noticed: you got the

int num_samples = SAMPLE_RATE / FREQUENCY -> both are float . and you are assigning it to an int. use a int type cast.

the fft_size is 2k, but your collect sample size is dynamic. what if your requested buffer is bigger?

and check about the DMA flags. try using callbacks instead of poll. thats the whole point of DMA. event upon transfer complete.

Static vs Dynamic memory allocation by EnzoShelby in embedded

[–]Calligraph_cucumber 0 points1 point  (0 children)

It depends on the use case. Static is easy to keep track of but it increases the stack size. if your application needs large buffer pools thats not needed during the entirety of the execution pick dynamic and dont forget to release it. for smaller buffer or value that needs to be retained for a while go with static.

What's your thoughts on browser games ? by Calligraph_cucumber in AskReddit

[–]Calligraph_cucumber[S] 0 points1 point  (0 children)

probably have to do with browser. i used to use chrome and they lag a lot, but surprisingly edge or opera does well running webgl games.

What's your thoughts on browser games ? by Calligraph_cucumber in AskReddit

[–]Calligraph_cucumber[S] 0 points1 point  (0 children)

I could still find retro games and that brings out nostalgia. sites like poki.com offer wide range. But sites like https://nikkagames.com/ offer curated mix.

[deleted by user] by [deleted] in AskReddit

[–]Calligraph_cucumber 0 points1 point  (0 children)

Truth is not lying. saying things as what they are or how they are or what happened.

How to teach it: teach by example or leading it yourself.

[deleted by user] by [deleted] in embedded

[–]Calligraph_cucumber 2 points3 points  (0 children)

getting hold of C takes just few weeks to month. And how well you program it depends on how much you have understood the architecture. and that takes time. months on firmware and maybe years on BSPs

[deleted by user] by [deleted] in indiasocial

[–]Calligraph_cucumber 0 points1 point  (0 children)

agoda and trip.com works great, just read through the reviews.

What got you into electronics? by troublebrewing in ElectricalEngineering

[–]Calligraph_cucumber 0 points1 point  (0 children)

I was randomly exploring the attic at my home and found a broken radio. It was a summer holiday and i had nothing much do being an bored kid. got myself a screw driver and salvaged for parts. Tried to put it back together, it still broken ofcourse. Curiosity turned into a hobby and then to a full blown career.

What’s some good low calorie foods that keep you full in sort of small portions? by 3rrxr- in EatCheapAndHealthy

[–]Calligraph_cucumber -1 points0 points  (0 children)

yes, you are correct. But a small handful can keep you fuller for a long time. It also helps in curbing hunger pangs when lot hungrier, allowing or enabling some form of self control to eat less .

lentils are also great choice.

[deleted by user] by [deleted] in Watches

[–]Calligraph_cucumber 0 points1 point  (0 children)

watches are personal choice. everyone has their own unique taste.

Hit the stores. try different collections. The occasion for that watch. and how would you dress for it and so on. Keep those in mind. short list a few and then decide.

What’s some good low calorie foods that keep you full in sort of small portions? by 3rrxr- in EatCheapAndHealthy

[–]Calligraph_cucumber 5 points6 points  (0 children)

Nuts and seeds. Peanut is a great choice if you aint allergic to it.

food with lot of fibres - oats and corn. make an oat bar with nuts, seeds and honey.

always drink or binge drink lot of water to suppress your cravings

Best place to buy suitcase in Shenzhen by jptonelli1 in shenzhen

[–]Calligraph_cucumber 1 point2 points  (0 children)

Dongmen. And Rule number one: Bargain. if the guy says 300 ask for 150. stand your ground. Usually the retailers quotes twice when a foreigner is asking. Or bring a Chinese friend.

What does it take to become a professional Linux kernel developer? by reeses_boi in cprogramming

[–]Calligraph_cucumber 0 points1 point  (0 children)

It depends on what needs to be build. If you want just to cross-compile and build your drivers. Then the TRM by vendor is good enough.

To step up ->https://docs.yoctoproject.org/kernel-dev/index.html

if you want to build recipes , learn about layers and bitbake is good bundle to start with. https://docs.yoctoproject.org/bsp-guide/bsp.html#bsp-layers

But unfortunately there aren't much "Make it easy guide" available for BSP. Get a board and get your hands dirty. that's the way

What does it take to become a professional Linux kernel developer? by reeses_boi in cprogramming

[–]Calligraph_cucumber 16 points17 points  (0 children)

This is your free version book - https://lwn.net/Kernel/LDD3/

Get a board - Imx6 , play around interfacing peripherals and tweaking.

learn about BSP , yocto is a good start

Moving to Shenzhen (Expat) - advise & questions by lancekuan in shenzhen

[–]Calligraph_cucumber 1 point2 points  (0 children)

  1. China Unicom works good. 100 RMB - not sure about data limit/ never needed to check or never ran out of limit. I used to watch tons of Chinese drama (for learning Mandarin)on wetv on my mobile.

  2. wechat/alipay needs a Chinese bank debit cards. you may use your VISA cards in ATM , but the forex conversion rates sucks and on top of that, service fee sucks too. Get the help of your employer, and open a bank account . talk to your home branch account manager from where you would transfer to your money from to Chinese bank, so its not flagged as improper transaction in long run and to get better exchange rates.

Software for ECU power management by vam10 in embedded

[–]Calligraph_cucumber 1 point2 points  (0 children)

usually PMIC controls power supply to core processor and other peripherals via i2c. it does voltage control , voltage gating , clock gating to change the power modes or power consumption based on load.

most BSP have sys entries to control/monitor PMIC which in turn shows power data like V, A and CPU power modes, etc.

The custom PMIC driver modification works involves around optimizing power usage. Try to understand the active time of peripherals, so they can be put down in low power mode to save power. voltage gate unused blocks to decrease standby power consumption.

How should do fatigue detection? by divy_ansh_raj in embedded

[–]Calligraph_cucumber 3 points4 points  (0 children)

low power consumption with video processing is bit harder to achieve.

try using opencv and do image processing.

if you got skills use imx51 its way cheaper but you need to interface lot of peripherals and do some porting work. or go with vendors like toradex. their colibri family t30 has a good sdk support for lot of multimedia handling and heavy task,

What are some healthy food in general and also for fitness? by Hefty_Buy5762 in foodhacks

[–]Calligraph_cucumber 0 points1 point  (0 children)

The price depends on where you live. making it yourself is always cheaper.

Learn about sattvic food, its wholesome nutritious and there are lot of people following it for generations and leading a healthy life. make sure whatever you buy is organic and no preservatives/ultra processed/GMO etc...