Archive for June, 2017

After renting a cottage with a WiFi router from BT (BT Homehub) – and having some initial problems connecting with it from 

– Our MacBooks

– The Google Home speaker

– The Amazon Firestick

(Yes – we really took all these devices and more with us on a holiday) a short writeup of the problems we encountered, and overcame, could potentially help others on the future.

Problem

Initially all of our devices had random problems connecting to the WiFI, and then at random intervals dropped off the WiFi network.

Pinging the hub and bbc.co.uk showed around 10-15% packet loss.

The problem turn out to be in this setup in the router :

NewImage

The issue is the “Sync with 2.4 Ghz.

New mobile WiFi devices are built to rapidly move between access points when they find a new stronger (or as strong) access point. When the SSID’s are identical (as you might have in a house to enable you to move your iPad between rooms where you have multiple WiFi access points (we have 6 in the house as a example) they see the 2.4 Ghz and the 5 Ghz access points being advertised by the BT router as 2 different access points and start flapping rapidly.

Unticking the selection box, and making sure the 2 networks have different SSID’s (i.e. add a number 5 at the end of the 5Ghz network as a example ) solves the problems.

————

Another way of solving the same problem :

We usually bring a portable access point anyway, to let us connect all our devices to one login at hotels we stay at – this will solve the problem if you have a Ethernet cable to plug into the house / room router, or to extend the existing WiFi network. We use a TPLink wireless N nano router for this.

TechCrunch Magic Wormhole is a clever way to send files easily and securely

If you need to transfer a couple hundred megs to a coworker or friend across the country, you aren’t short on options. In fact, options are thick on the ground, and all have their own issues. Don’t you wish you could just speak a few magic words and send stuff directly to them, no intermediate upload, no web interface, no login? Magic Wormhole is a clever way to do just that. Read More Techcrunch?d=2mJPEYqXBVI Techcrunch?d=7Q72WNTAKBA Techcrunch?d=yIl2AUoC8zA Techcrunch?i=BlcwErhG0yU:Z-122unPV6M:-BTjWOF_DHI Techcrunch?i=BlcwErhG0yU:Z-122unPV6M:D7DqB2pKExk Techcrunch?d=qj6IDK7rITs

http://feedproxy.google.com/~r/Techcrunch/~3/BlcwErhG0yU/

Sent with Reeder

Sent from my iPad

Adafruit Industries – Makers, hackers, artists, designers and engineers! “Is Arduino project hijacked and turned on closed source?” @Olimex @arduinoorg #FreeArduino

Freearduinosticker-2

What happens with Arduino project? | olimex.

All hardware projects listed on arduino.org are announced to be open source hardware, but none of them comply with OSHW definition. The sources are with status “coming soon” years after their release, or where these sources are available there are hidden black boxes which actually spoil the whole idea to allow other people to study, modify, improve and reproduce the design.

So many people now ask themselves the question: Is Arduino project hijacked and turn in to Closed Source Project and how this will affect the Arduino community in future?

The problem is that in this Foundation some not so decent people come just for the money and do not carry about open source spirit which made this project possible and it seems they now have the majority shares and votes – OLIMEX Ltd.

Read more.

TechCrunch Now you can quantify your cat’s comings and goings too

Cat owners rejoice! Now you can quantify the comings and goings of your furry friend — thanks to an app-controlled pet door that can send push notifications when Tibbles enters and leaves your abode. Read More Techcrunch?d=2mJPEYqXBVI Techcrunch?d=7Q72WNTAKBA Techcrunch?d=yIl2AUoC8zA Techcrunch?i=r20_yyb04QA:cjgEHLybO98:-BTjWOF_DHI Techcrunch?i=r20_yyb04QA:cjgEHLybO98:D7DqB2pKExk Techcrunch?d=qj6IDK7rITs

http://feedproxy.google.com/~r/Techcrunch/~3/r20_yyb04QA/

Sent with Reeder

Sent from my iPad

Engadget Anki’s cute Cozmo robot can teach kids how to code

Cozmo+Code+Lab.jpg

In addition to being an adorable robot companion, Anki’s Cozmo is now getting a programming platform of its very own. Starting today, Cozmo owners will have access to “Code Lab,” a visual programming platform based on MIT’s popular Scratch Blocks. Basically, it breaks down all of Cozmo’s functionality — moving, speaking and even recognizing and reacting to things around it — into blocks that kids can easily rearrange. As usual with Scratch, the idea is to get newcomers familiar with programming concepts, but it could eventually be used to build more complicated routines.

Code Lab will help kids hone their programming skills by giving them a set of challenges that can only be solved by making Cozmo act in specific ways. But of course, they’ll also be able to dive into all of the platform’s functionality to experiment. While coding tools for kids aren’t exactly new, Code Lab is a smart move by Anki, since it turns the robot into something much more than an expensive toy.

Source: Anki

https://www.engadget.com/2017/06/26/anki-cozmo-code-lab/

Sent with Reeder

Sent from my iPad

Sent from my iPad

Hackaday Imaginary AC Circuits Aren’t Really Complex

If you have ever read advanced textbooks or papers about electronics, you may have been surprised to see the use of complex numbers used in the analysis of AC circuits. A complex number has two parts: a real part and an imaginary part. I’ve often thought that a lot of books and classes just kind of gloss over what this really means. What part of electricity is imaginary? Why do we do this?

The short answer is phase angle: the time delay between a voltage and a current in a circuit. How can an angle be a time? That’s part of what I’ll need to explain.

First, consider a resistor. If you apply a voltage to it, a certain current will flow that you can determine by Ohm’s law. If you know the instantaneous voltage across the resistor, you can derive the current and you can find the power–how much work that electricity will do. That’s fine for DC current through resistors. But components like capacitors and inductors with an AC current don’t obey Ohm’s law. Take a capacitor. Current only flows when the capacitor is charging or discharging, so the current through it relates to the rate of change of the voltage, not the instantaneous voltage level.

That means that if you plot the sine wave voltage against the current, the peak of the voltage will be where the current is minimal, and the peak current will be where the voltage is at zero. You can see that in this image, where the yellow wave is voltage (V) and the green wave is current (I). See how the green peak is where the yellow curve crosses zero? And the yellow peak is where the green curve crosses zero?

These linked sine and cosine waves might remind you of something — the X and Y coordinates of a point being swept around a circle at a constant rate, and that’s our connection to complex numbers. By the end of the post, you’ll see it isn’t all that complicated and the “imaginary” quantity isn’t imaginary at all.

Simplifying Assumptions

Start with an audio signal of someone speaking and feed that into your circuit. It is awash with different frequencies that change constantly. If you had a circuit with only resistors in it, you could pick a point in time, find all the frequency components present or the instantaneous amplitude, derive the instantaneous currents, and you could use conventional techniques on it. You’d just have to do it over and over and over again. If the circuit involves inductors or capacitors, whose behavior depends on more than just the voltage across them, this becomes very difficult very quickly.

Instead, it is easier to start with a sine wave at a single frequency and assume that a complex signal of many different frequencies is just the sum of many single sines. One way to think of a capacitor is to consider it a resistor that has higher resistance at lower frequencies. An inductor acts like a resistor that gets larger at higher frequencies. Because we are only considering a single frequency, we can convert any capacitance and inductance values to an impedance: a resistance that is only good at the frequency of interest. What’s more is that we can represent impedance as a complex number so that we can track the phase angle of the circuit, which directly relates to a particular time delay between voltage and current.

For a true resistor, the imaginary part is 0. That makes sense because the voltage and current are in phase and therefore there is no time delay at all. For a pure capacitor or inductor, the real part is zero. Real circuits will have combinations and thus will have a combination of real and imaginary parts. Numbers like that are complex numbers and you can write them in several different ways.

Complex Review

The first thing to remember is that the word imaginary is just an arbitrary term. Maybe it is better to forget the normal meaning of the word imaginary. These imaginary quantities are not some kind of magic electricity or resistance. We use imaginary numbers to represent time delays in circuits. That’s all.

There is a long story about what imaginary numbers mean in pure math and why they are called imaginary. You can look that up if you are a math-head, but you should know that math books use the symbol i for the imaginary part of a complex number. However, since electrical engineers use i for current, we use j instead. You just have to remember when reading math books, you’ll see i and it isn’t a current, and it is the same as j in electrical books.

There are several ways to represent a complex number. The simplest way is to write the real part and the imaginary part as being added together along with j. So consider this:

5 + 3j

We say the real part is 5 and the imaginary part is 3. Numbers written in this form are in rectangular format. You can plot it on the number lines like this:

That leads to the second way to write a complex number: polar notation. If the point on the graph is 5 + 3j, you can note that a vector can represent the same point. It will have a length or magnitude and an angle (the angle it makes with the X-axis of the graph). In this case, the magnitude is 5.83 (about) and the angle is just a little under 31 degrees.

This is interesting because it is a vector and there are a lot of good math tools to manipulate vectors. It is going to become really important in a minute because the angle can correspond to a phase angle in a circuit and the magnitude has a direct physical relationship, as well.

Phase Angle

Remember that I said we do an AC analysis at a single frequency? If you plot the AC voltage across and the current going through a resistor at some frequency, the two sine waves will line up exactly. That’s because a resistor doesn’t time delay anything. We’d say the phase angle across the resistor is zero degrees.

However, for a capacitor, the current will appear to rise before the voltage by some amount of time. This makes sense if you think about your intuition about capacitors at DC. When a capacitor is discharged, it has no voltage across it, but it will consume a lot of current — it temporarily looks like a short circuit. As the charge builds, the voltage rises but the current drops, until the capacitor is fully charged. At that point, the voltage is at a maximum, but the current is zero, or nearly so.

Inductors have the opposite arrangement: voltage leads current, so the curves would look the same but the V curve is now the I and the I curve is now the V. You can remember that with the simple mnemonic ELI the ICE man, where E is voltage just like in Ohm’s law. When you talk about phase shift in a circuit, you really mean how much the current leads or lags the voltage at a given frequency. That’s a key idea: phase shift or angle is the amount of time the current leads or lags the voltage. You can also measure phase between other things like two different voltage sources, but generally when you say “this circuit has a phase shift of 22 degrees” you mean the voltage vs the current time delay.

Keep in mind a sine wave is like a circle bent to fit a line. So if the start of the sine wave is at 0 degrees, the top of the positive peak is 90 degrees. The second 0 crossing is 180 degrees, and the negative peak is 270 degrees–just like the points on a circle. Since the sine wave is at a fixed frequency, putting something at a particular degree mark is the same as expressing a time.

In the case of a resistor, the shift is 0 degrees. So in complex notation, a 100 ohm resistor is 100 + 0j. It can also be 100∠0. For a capacitor, the current rises before the voltage by 90 degrees so a capacitor has a phase shift of -90. But what’s the magnitude?

You probably learned that the capacitive reactance is equal to 1/(2πfC) where f is the frequency in Hz. That’s the magnitude of the polar form. Of course, since -90 degrees is straight down the number line, it is also the imaginary part of the rectangular form (and the real part is zero). If capacitive reactance (Xc) is equal to 50, for example, then you could write 0-50j or 50∠-90. Inductors work the same but the reactance (Xl) is 2πfL and the phase angle is 90 degrees. So an inductor with the same reactance would be 0 + 50j or 50∠90.

Finding the Power

Let’s look at a quick example of what these phase angles are good for: calculating power. You know that power is voltage times current. So if a capacitor has 1 V across it (peak) and draws 1 A through it (peak), is the power 1 watt? No, because it doesn’t draw 1 V at 1 A at the same time.

Consider this simulation (see figure to the right). You can see the traces to the left show the 90 degree phase shift very clearly (the green trace is voltage and the yellow one is current). The peak voltage is 1.85 V and the current peaks at about 4.65 mA. The product of the voltage times the current is 8.6 mW. But that’s not the right answer. The power is actually 4.29 mW (see the graph on the right). In an ideal capacitor, power isn’t consumed. It is stored and released, which is why the power goes negative. Real capacitors, of course, exhibit some loss.

Note that the power supply doesn’t provide 4.29 mW, but much less. That’s because the resistor is the only thing consuming power. The voltage and current are in phase for it and some of the power it dissipates is coming from the capacitor’s stored charge.

Circuits

The magnitude of the vector is usable in Ohm’s law. For example, at 40 Hz, the Xc of the example circuit is just under 400 ohms. So the total complex impedance for the RC circuit is 1000 – 400j.

If you are adept with vectors you could do polar by writing 1000∠0 + 400∠-90. However, it is usually easier to write the rectangular version and convert to polar (Wolfram Alpha is good at that; just remember to use i instead of j). The magnitude is just the Pythagorean theorem and the angle is simple trig. I am not going to go into it, but here’s the formula where R and J are the real and imaginary parts, respectively.

mag=SQRT(R^2+J^2)
phase=arctan(J/R)

Our example, then, is 1077∠-21.8.

So what’s the power coming out of the voltage source? Power is E^2/R (or, actually, E^2/Z in this case). So 25/1077 = 23 mW peak. The simulation shows 22.29 and since I rounded a few values, that’s close enough.

That’s It?

That’s not it, of course, but it is all you need to know for a lot of purposes. Many hobby-level electronic texts skimp on the details and just work with magnitudes. For simple circuits, this can work, but for something complex (no pun intended), it gets hairy fast.

By the way, this example showed to elements in series. However, you can add reactances in parallel just like you do resistors in parallel.

The key concepts you need to remember are:

  • The analysis of an AC circuit mostly occurs at a single frequency with a sine wave input.
  • Imaginary numbers aren’t imaginary.
  • Magnitudes of complex numbers in polar forms can be treated like a resistance.
  • Phase angle is the time delay between the voltage and the current waveform.

There are a lot of details I glossed over. You probably don’t need to know how i is really the square root of negative one. Or how Euler’s number plays into this and the simplicity of integrating and differentiating sine waves written with an amplitude and a phase angle. If you are interested in math history, imaginary numbers have quite a story behind them. If you want something more practical, Khan Academy has some useful videos. However, what’s covered here should be all you need to know to work with AC circuits.

Filed under: Engineering, Featured

http://hackaday.com/2017/06/15/imaginary-ac-circuits-arent-really-complex/

Sent with Reeder

Sent from my iPad

Yoga in the square.

The Internet is full of Machine Learning that promises to be able to extract insights about you based on the information you leave, so I just took one of these services to the test – based on my Tweets.

This was from 

NewImage

https://applymagicsauce.com/prediction.html

And this is what it told me about myself

NewImage

And further 

NewImage

And my employer will be (un)happy to know that I have average Leadership potential

NewImage

So it got my age wrong – the rest can only be answered by those that know me better than I know myself.

12Next