About The Happy Coder

This author has not yet filled in any details.
So far The Happy Coder has created 92 blog entries.
23 08, 2019

#1 Internet of Things

By |2019-08-23T13:18:48+00:0023rd August 2019|IoT|

The Particle Photon connects with the Internet and communicates with another Particle Photon, a website or an app on a smartphone. Data can go both ways. You can turn a light on in your house with your phone or you can see what the temperature is in your living room in real time. These are just simple examples.

23 08, 2019

The importance of IoT

By |2019-08-23T07:42:27+00:0023rd August 2019|IoT|

Learning about IoT is so important. There is so much hype and mistrust and yet the technology is there to bring so much benefit to people. Just like AI it is time for people with good motives to take the centre ground and find ways to use technology for the benefit of everyone.

22 07, 2019

The fear of AI

By |2019-07-22T06:33:29+00:0022nd July 2019|AI, IoT|

There is a lot of scaremongering about Artificial Intelligence, 5G and the Internet of Things. These technologies are powerful tools for good and can of course be abused. Make it your aim to use them for good, to benefit society or an individual. Compassion wins every time. Don’t let the desire for money, power or influence drive you, be a blessing to others and everyone benefits

21 07, 2019

Most popular coding languages (July 2019)

By |2019-07-21T07:01:03+00:0021st July 2019|Code|

These are the current most popular coding languages. The list changes slightly every month and is based on use and discussion. TypeScript has moved up apparently.  1. JavaScript 2. Java 3. Python 4. PHP 5. C++ (tie) 5. C# (tie) 7. CSS 8. Ruby 9. C 10. TypeScript 11. Swift 12. Objective-C 13. Scala

11 07, 2019

Can Artificial Intelligence make a cup of Yorkshire Tea?

By |2019-07-11T20:43:58+00:0011th July 2019|AI|

Artificial Intelligence isn’t necessarily evil nor benign. It is simply a tool that is a clever way of using information or data combined with the power of a modern computer with code that is written in such a way that does things that humans can’t do easily. We on the other hand are really good at making a nice cup of Yorkshire Tea. 

11 07, 2019

Why learn to code

By |2019-07-11T08:36:41+00:0011th July 2019|Code|

Learning to code is for anyone and everyone, no matter what your age or gender. It is easy to get started and is as difficult as you want to make it. It is a skill that can be used in surprising ways and for things you never expected. The best way to understand what it is for is to try it, it then becomes clearer and clearer. It will take you on a path that will boost your confidence and [...]

31 10, 2018

Pong Challenge #2

By |2018-10-31T07:25:21+00:0031st October 2018|Pong Challenge|

Now delete all the code that is there and write the following code in. This is good practice so that it becomes memory muscle and intuitive even though the temptation is to cut and paste somethings. I have found it laborious but in the end very helpful to my coding. function setup()  {   createCanvas(800, 600); } function draw()  {   background(100); } You should have something like this...     We are going to create a canvas on which [...]

30 10, 2018

Pong Challenge #1

By |2018-10-31T07:01:26+00:0030th October 2018|Pong Challenge|

To take part in this challenge you will need to use processing’s web based editor which you can get from www.editor,p5js.org. You can create an account with them (if it works) or you can use a google account (recommended) or a github account (if you have already got one). You should get something like the picture above. Click on the pink cog symbol top right hand corner. Here you can change the background theme. I like to use the high [...]

30 10, 2018

Sketch B4_11 (distance flash)

By |2018-10-30T06:58:09+00:0030th October 2018|Arduino|

Sketch B4_11 (distance flash) Don't need Serial print This flashes faster the closer it gets to the object Attach the +ve leg of the LED to pin 10 and the other to GND ✏️ int flash; int ledPin = 13; #define trigPin 12 #define echoPin 11 void setup() {   pinMode(ledPin, OUTPUT);   pinMode(trigPin, OUTPUT);   pinMode(echoPin, INPUT); } void loop() {   long duration;    long distance;   digitalWrite(trigPin, LOW);    delayMicroseconds(2);     digitalWrite(trigPin, HIGH);   delayMicroseconds(10);   [...]