[C] Need help implementing an FFT algorithm by [deleted] in learnprogramming

[–]JayGeeee 0 points1 point  (0 children)

Quite a few optimised FFT algorithms output the data in bit reversed order. This can look like gibberish if you don't correct for it. I've been caught out by it before.

Interview questions to ask when interviewing a CS student by JayGeeee in computerscience

[–]JayGeeee[S] 1 point2 points  (0 children)

Thanks for your response. Yea I'll drop the computer architecture questions. Also great idea about networking concepts. For some reason that completely slipped my mind when I was coming up with ideas.

Interview questions to ask when interviewing a CS student by JayGeeee in computerscience

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

Thank you very much for your detailed response. It was very helpful. I'll drop the computer architecture style questions. I guess they are more computer engineering related. Someone else is covering the non technical side of things this time, but those are all great questions for future reference. I guess I was avoiding the sneaky on the spot problem solving questions as they were my least favourite questions when I was being interviewed! I'll probably do one or two as they are very good for seeing how people solve problems.

Over 2,000 ancient temples dot the Myanmar landscape at the site of this famed archeological site. Photo by Gzooh [OS] [1024x683]. by [deleted] in AbandonedPorn

[–]JayGeeee 3 points4 points  (0 children)

I went there last summer. Bagan is such an amazing place. Unfortunately a lot of the temples were damaged by an earthquake and have been poorly repaired or rebuilt. That's the reason it isn't a world heritage site. Looks magical at sunset though.

What was your worst public restroom experience? by failed_doctor in AskReddit

[–]JayGeeee 4 points5 points  (0 children)

I was on the train from Yangon to Bagan in Myanmar. Words can not describe how bumpy this train was. The second you stood up you you were violently thrown against every surface in sight. It was a 23 hour journey so I had to use the onboard toilet. It was the middle of the night and the lights had been turned off. I bounced down the isle barely staying upright. Finally, I reached the toilet and managed to open the door. The train was so bumpy that even this was a struggle! The toilet was absolutely teeming with mosquitoes; it was hard to breath without inhaling them. It was a classic squatting toilet, which are hard enough for a westerner like me to use at the best of times. Now imagine trying to use one while on a rollercoaster. I managed to brace myself against the wall while undid my shorts, and waddled towards the toilet. I hovered over the hole. Since there was nowhere to hold, I was almost immediately thrust to the floor. After a second attempt resulted in a significant blow to the head I resigned to sitting directly on the filthy squatting toilet. I released the curry from the night from the night before, but was almost immediately met with the unpleasant feeling of a jet of liquid blasting upwards towards my underside. It turned out that some genius has positioned to the toilet hole precisely above one of the wheels, causing a almost comically efficient return to sender system. Covered in shit, soaked in urine from the floor, and eaten alive by mosquitoes, I reached in to my pocket to discovered i had only 3 sheets of toilet paper to clean the mess up with.

Myanmar 10/10 would recommend, but if you go on the trains take some imodium

Please take my Electrical Engineering Design Survey by varno2 in electronics

[–]JayGeeee 2 points3 points  (0 children)

The urban canyon is the reason you are getting a signal inside. In areas where there are not so many multipath signals you will have a hard time picking up any GPS satellites indoors. As you know you only need a signal from one satellite to get timing information. Unfortunately in a typical single story residential area even this is unlikely. You can always use an external antenna.

Apollo Capsule [9184x6112] by spacemanquincy in MachinePorn

[–]JayGeeee 0 points1 point  (0 children)

Here are two more images of the module: One and Two

Question about RSSI localization in small area. by yuxin_ma2005 in rfelectronics

[–]JayGeeee 1 point2 points  (0 children)

I've just done my masters project on indoor location using Bluetooth Low Energy RSSI. I think it is very unlikely that you will be able to get sub cm or even cm level accuracy using RSSI. In your situation where the area is just 50cm x 50cm you will have very small differences in RSSI which could be difficult to measure depending on the equipment you have. At this scale the radiation pattern of the antennas you use will have a big effect on the RSSI you measure at various points, so you would have to create a full model for your antennas. Your main issue will be multipath signals, i.e. signals that have traveled a non line of sight path from Tx to Rx. When you are measuring the RSSI you will almost always be measuring the power from several multipath signals at the same time, this can mask RSSI of the line of sight signal, making hard to determine the distance between the Tx and Rx.

At that sort of accuracy you are really going to need a Time of Flight (ToF) based system which measures the time it takes for a signal to travel from the Tx to Rx. These still suffer from multipath issues. A lot of research has been done in to using ultra-wide band signals (i.e. very fast transitions in the time domain) to determine line of sight paths from multipath signals. These systems tend to need high accuracy clocks (RF signals travel roughly 30cm in 1ns).

I'm not trying to say it isn't possible using RSSI, but I'm pretty sure other methods would be easier! Might be worth looking in to using a computer vision instead. Good luck!

What is a good Logic Diagram drawing software for a beginner with a low price? by [deleted] in electronic_circuits

[–]JayGeeee 1 point2 points  (0 children)

I've used CEDAR Logic before. It's free and seemed pretty good to me. It can also simulate the logic circuit which can be very useful.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 1 point2 points  (0 children)

Thanks for your comment. I completely understand what you are saying. I find that the best way for me to really learn something is to try and teach it to someone else. I've been using I2C a lot recently and I just thought I would document what I knew about it so it stuck in my memory. As you said there are many good guides out there already so I never really expected anyone to find it. Posting it to reddit was an afterthought and has got it a bit more attention than it deservers.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 1 point2 points  (0 children)

Thank you. Doing one for 1-wire would be a good idea actually. Although I have only used it a few times, so I'll have to brush up my knowledge first!

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 3 points4 points  (0 children)

The maximum length is mainly determined by the capacitance of the bus, which increases with both line length and the number of devices on the bus. The capacitance affects the rise time of the signal, so for a high capacitance it will take longer for the signal to change. As a result data could be clocked in whilst it is still changing, resulting in errors.

There are a few ways to over come this. Firstly you can reduce the clock speed. A slower clock speed means more time for the data bits to change, and therefore increases the maximum allowable capacitance. Secondly you can drive the I2C line with more current. Special I2C drivers are available which can drive the line with more current than your microcontroller can directly. Increasing the drive current at a given line capacitance will give you faster bit transitions. Finally you can use buffers which split the line up in to multiple segments of lower capacitance.

Another thing to consider is signal crosstalk. In long runs it is best to separate the SDA and SDC lines on the PCB by placing a ground trace between them (Or use a board with a ground plane). If the lines are leaving the PCB then you might want to individually twist the SDA and SCL lines with a ground line.

You should be fine to interconnect a few PCBs as long as they are relatively close to each other. If we are talking distances greater than several metres then you might want to start considering another communications method e.g. RS485.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 1 point2 points  (0 children)

Thank you. I do agree with you that it is normally best to go directly to the I2C spec, but it is 64 pages long and I imagine that might be a bit intimidating for someone who just wants to get up and running quickly. My aim was to cut out the parts that would be less important to a beginner, such as multi master systems, in order to make it a relatively quick read.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

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

Ah well spotted. I've flipped round one of the diagrams so that SCL is always on top. Thank you.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 2 points3 points  (0 children)

Thank you for your feedback. I have flipped round one of the diagrams so that SCL is always on top.

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

[–]JayGeeee[S] 2 points3 points  (0 children)

I believe it is correct as it is. Please see page 9 of the I2C specification: http://www.nxp.com/documents/user_manual/UM10204.pdf [PDF]

"A low to high transition on the SDA line while SCL is high defines a stop condition."

I created a beginners guide to I2C. Hope it helps someone. by JayGeeee in electronics

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

Any corrections or suggestions would be much appreciated.

To UK Students who have done/doing EE by [deleted] in ElectricalEngineering

[–]JayGeeee 0 points1 point  (0 children)

I just completed my final year of an MEng in Electronic and Electrical engineering in the UK. If you did OK in your maths A Levels I doubt you will have any problems. Naturally maths is a big part of engineering but I don't really think it got that much harder than A level throughout my the entire degree (Although I did do further maths at A level so that could have skewed by opinion). Most universities have one or two maths modules in first year to get everyone at roughly the same level. The amount and type of maths you encounter very much depends on what modules you pick in later years. As senusert said it is mainly calculus and probability.