Wednesday 21 November 2018

Tokyo

Hello I am in Tokyo
I have been here for a while now exploring Japan's robotics technology and trying my best to look far beyond just Yodobashi Camera 😀

I will be back soon with some nice updates.

Tuesday 9 October 2018

Ai Driven Ground Station


Robotics ground stations. They need a little bit of a revamp. Already they are stuck in the days of 2008 where Atmel micro-controllers were the shiz-nizzle. Today in 2018 we're seeking more advanced ideas and creations and that old ground station used for your drone back in 2008 just doesn't combine the cutting-edge anymore.



What users need in a modern ground system seems to be leaning towards one or two trends:
1) Cross Platform - So why not write the code using Python instead of using an IDE? Users today want to utilise their latest Board Computers (Raspberry Pis, Nvidia Jetsons) which are all using Linux. Users are using Macbooks to program, so why not make it useable on that too with Python script? More and more Users are also using Mini PC platforms too (Intel Nuc,  Beelink X55) which are running Windows 10 or Ubuntu on a tiny 12v motherboard with everything in it.

Times are changing. It's no longer just Windows Laptops or Desktops.

UPDATE October 15th: Free Python/Ai/TKinter Lessons at Udemy.com Use Code: OCT_SPL

2) Live Digital Video - Ground stations are still struggling to get off the ground with a good open Live digital video standard. It's also still not very user friendly nor quick to get going.

3) AI Integration - Let's face it, this is where we all want to go. We want to experiment and learn in a practical way, how to utilise all the Artificial Intelligence technologies that are available but still no ground station is out there to provide this opportunity in one easy to start package. It just is not out there.

So why don't we make our own? So I did.



Here is the stage that I am at for my Raspberry Pi Ground Station (rpigs)

In time I see no reason why rpigs cannot include a host of different ways to use and display new technologies: OpenCV object tracking module, Line detection following, Lidar mapping in Real Time, Sense and Avoid Module; just add another Neural Compute Stick for each task.

I wrote this in Python with a few addon dependencies. It works on Ubuntu Laptops, 5v Raspberry Pi, Macbook, Windows PC,  everything. Everything. EVERYTHING. Cross-Platform. Everything which uses Python can use it.

Even my Home made 12v Computer which I made from a 16" Laptop Screen and Cardboard Box.


I really love my Ghetto Computer. I can run any Board computer with it giving a lightweight, low-power system which can be upgraded and modified in a more straight forward manner than most sealed modern laptops.

Reviving the Hacktop Computer since 2018.

So, this is why it is useful, haven't you always dreamed of identifying objects as your drone flies over a landscape? Isn't it a fun thing to then be able to assign an action so that once the object has been identified we can learn and decide what course of action we choose it to take? It's a really fun possibility.

I hope to one day have my mini brushed motor plane modified into a UAV and this is part of that idea.



rpigs (Raspberry Pi Ground Station) V1_0 incorporates digital video or analogue video, telemetry data and commands, map view, and Ai. It is in development and has already begun. I hope it is one day good enough to release to the general public for free under open license. I hope that companies an developers will support me with their technology to allow me to continue building on it. Thanks already to Intel & Movidius for helping me with the Neural Compute Stick I wouldn't be here today without your help, and I hope you can continue to support.

Thanks for reading.

Tuesday 4 September 2018

Cheap Portable TV/PC/Gaming Screen Using T.V56.03 Board

Greetings,
I am making my own 12v TV for my Hippy Van to allow me to have Linux development when out on the road, also some movies and gaming but I don't really do that much these days. I looked up ready made 12v portable TV/Monitors from ASUS and Gechic, figured I could make my own for about $25, I'm almost there, here's how it has gone...


I have just got this TV Driver Board (T.V56.03 + TSUMV56RUU-Z1 Chip) and I try using it with Screen (Innolux N156HGE-EA2 rev C2)

When I power the board + Screen connected it working OK for like 1 minute. Then after this, it goes ON/OFF/ON/OFF repeating. ON 1 Second, OFF 1 Second so on.

My question, is this Board problem? Firmware problem? Overheat problem? Chip damaged/dying? Not enough power from 5a max power supply?

I am using 12v 5amp supply

Board PDF file added>T_V56_03
Screen PDF file>https://datasheetspdf.com/pdf-file/1093520/INNOLUX/N156HGE-EA2/1
My Board Look like this>


Screen Details:

Heres a video of what is going on >


My Progress Updates trying to Eliminate & Fix:

1) It doesn't seem to be a power supply issue. I hooked it up to a 30amp 12v supply and the same thing happened as in the video.
2) Found this general User Guide PDF> Users guide of V59 TV con...
3) Github Repo of Firmware & Manuals and other things HERE.

4)Success! 
After reading the datasheets for both the Screen & T.V56.03 Board, Reading the User Guide, testing the PSU, having a cup of tea and a little think, it appears to now be working well without cutting out. It seems that the board was sent to me with the LVDS Voltage set to 5v, according to the Screen Panel datasheet, it should be 3.3v so I changed the little Voltage Jumper on the controller board as in this picture>


It seems all is ok, I haven't fried the screen using the initial 5v setting (thank goodness), and the screen is powering without cutting out (so far). 

Reason To Be Cheerful:
1) It is a 16" 1080p TV that runs on 12v Battery

2) It is a Nifty Portable Monitor for Linux/Windows/Osx again running on 12v
3) Using a USB stick filled with media files it will recognise and play Movies/Photos/Music. Sadly it refuses to play modern Rap Music or any pink haired female Music.
4) It can be used as a large FPV screen for flight
5) Plug in any SOC computer and you have Internet access
6) KODI in the Campervan
7) RetroPi gaming on the Go

Thanks for the replies and I hope this helps others

Thursday 30 August 2018

Recycling Lithium Cells

The other night, i found myself repairing a Dyson V8 vacuum cleaner.


It's taken me some time to decide if these Dyson hoovers are a good thing. They are really expensive, the suction up until the new V10 (as it claims to be) hasn't been comparable to a regular vacuum, they are frequently breaking down, charger leads breaking, overheating, and the batteries are commonly failing.


After calling Dyson customer care and being told some exorbitant amount for repair which like Sony repairs, can often cost you more than a replacement, stripping the Dyson all down and examining each part myself, I finally found out that the battery was problematic.

Now, the genuine Dyson battery has inside a protection circuit which is pretty much over-zealous in it's protection. I'm guessing Dyson wished to ensure it's reputation and avoid lawsuits for injury by making their smart battery more safe or more likely to shutdown than other batteries. I bought a replacement battery for the unit and sure enough it works again.

As a maker and someone who likes to try to use things instead of throwing them away, I decided to strip the old battery unit to see what is inside.

The stripped Dyson battery pack

It took quite some effort to strip the battery unit down to the bare cells. It's just as tricky trying to open up and repair power supply units because obviously, companies don't want you doing that in case you electrocute anybody so they usually use strong adhesives inside.

What I learned is that the circuit board inside the battery pack is usually the thing to fail and the cells are usually always intact and good. Looking at the extracted cell pack, I had to snip the nickel strips of each cell to allow me to slide out the 18650 cells as they're spot welded in series to make a 24v pack.



Looking closely at the cells, Dyson used high amp draw 18650 cells which makes sense considering the vacuum cleaner is a high amp draw device. So no using low amp 18650 cells here. In the genuine Dyson pack that I got there are LG 18650 cells, taking a closer look and you find that they are of the LG HD2C type, meaning they have a rated capacity of 2100mah (or 2500mah), and an amp draw of 20a/35a peak. That's quite an impressive cell if you want to achieve rocket speed.

These cells usually come in at about 6 pounds each on ebay, and after checking each cell to be good, I have 6 of them to play with. So, I figured I could make two 3s packs for my quadcopters and planes. The cells should be pretty useful for quadcopters, maybe a little overkill for a plane, but they're free so no harm.

To make a 3s Li-ion flight pack I need:
3x 18650 cells (matching)
1x JST lead (under $1)
1x 3s balance lead (under $1)

Other things used will include: Soldering equipment, Sticky Tape.
The correct way to solder the cells together, solder the JST wire, and solder the balance lead

I used JST connector because it is more light weight than XT60. I am fairly sure the wires can handle the amp draw as i have been using them on a 250 quad pulling 20amps for a while.

Soldering all together in my shed

As i'm not so fussed about a professional pack, i'm just happy to use any tape I have around, but using something to cover the exposed ends of the packs to prevent short circuit happening somehow. I check that it is all wired up correctly, first using a multimeter to check nominal voltage (was around 11.8v), and then test the balance lead with a voltage buzzer. If the cell readings on the led buzzer are off then you likely have your balance lead wired incorrectly. Go over the wiring and rewire if required.

My two free completed lithium ion packs next to my regular 1000mah 3s lipo
The packs weigh around 150g, compared to my lipo which is around 90g. it is heavier yes, but also it is more than double capacity so it will be interesting to see how flight times are different.

I can balance charge these packs using my Turnigy Reaktor 300w charger. It is recommended to charge 18650 cells at 0.5c, so if the cell capacity is 2100mah then we will charge at just over 1amp. 

These cells can be run down to 2.5v per cell safely, but I figure the voltage drop off from below 3v will not be sufficient to keep the quadcopter in the air. Usually the quadcopter will gently float to the ground as the power diminishes.

I'm hoping to use these in my quad drone, in parallel with my hexacopter, and in my future UAV plane. Yes, that's right, i'm now learning how to fly planes.

Cheap as chips practice plane, will become an fpv plane with maybe a stabilised flight controller, then will upgrade to a larger UAV Plane when I can confidently land a UAV Plane :)

I also plan to use 18650 cells to power my fpv screens and goggles. For these as the power draw is much less, I can use low amp draw 18650 cells such as the few Panasonic 3400mah cells I have powering torches. Using a 2s 18650 sled, soldering a balance lead to it I can have a power solution where I can remove the 18650 cells for other purposes similar to the fatshark 18650 holder that is available. 
I'm just waiting for the sled to arrive :)
I also wonder if it is viable to use a 18650 sled as the foundations to a 3s flight pack. There are some high amp draw sleds available due to the vaping community requirements, so I think it is quite reasonable to believe some will be strong enough.


Wednesday 4 April 2018

CyberPunk ˈsaɪ.bə.pʌŋk

Original Article Published 4th April 2018

USING PYTHON CODE, TENSORFLOW, C++, LINUX COMMANDS

From Urban Dictionary

The more recent lifestyle that has evolved and coined this term is fragmented and hard to classify. It is still very new and there is debate on what the term means. Generally observation shows that "cyberpunks" are not only extremely technologically proficient, but are innately adept at it. They have a desire to know all forms of technology they come into contact with. 

If you have a desire to learn, you also must not ignore a desire to have fun. 

Here we learn how to connect and stream fast wireless video from a Raspberry Pi to a Ubuntu Laptop.

Pi Hardware
Step 1) Install Raspbian stretch With Desktop onto the Raspberry pi (2/3/Zero W) here.
Step 2) Connect and enable the Pi Camera module here.
Step 3) Open a terminal and find out your ip address on the Pi once connected to wifi here.
Step 4) put all in a nice case like this one

(Pi Zero W)

Ubuntu Laptop
Step 1) Install Ubuntu 16.04 onto a hard drive here.
Step 2) Open a terminal and find out your ip address on the Laptop once connected to wifi here.



Stream Video
Step 1) Open Putty on the laptop and connect to the Rpi using the ip here.
Step 2) Copy and paste this line of code into putty and send it to the pi to begin streaming:
raspivid -t 0 -w 640 -h 480 -fps 30 -b 1700000 -o - | gst-launch-1.0 -v fdsrc ! h264parse config-interval=1 ! rtph264pay ! udpsink host = (your ip here) port= 9000

Step 3) Open Terminal on the Laptop and copy and paste this into:
udpsrc port=9000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! avdec_h264 ! videoconvert

Watch the Video on the Laptop

Tips:

-Both Raspbian Stretch & Ubuntu 16.04 have gstreamer installed already
-You can increase the video frame size up to 1080p
-You can rotate the pi camera video using code -rot 180 


CRITICS I CAN HEAR YOU "Where's The Ai!?"

Well....

Here we learn how to pipe the video stream into a Movidius Neural compute stick and perform Ai experiments.

Laptop
Step 1) Install the Movidius SDK using this simple get started page here.
Step 2) Clone the Git repo here to a folder on your laptop
Step 3) 'Make all' the examples
Step 4) Play with Examples

Once you get to know your way around the examples in the NCAPPZOO Git, you can start to understand more.

With a little bit of knowhow you can stream the UDP pi video into the Neural Compute Stick for processing using just some Python code.

To do this you must be able to write and edit python script.

Here are some examples I made using facenets as Ai platform. You can use it to identify Gender and Age of people, or if they are Happy or Sad.


Amazon are using something similar with their Rekognition product, they are probably using facenet too.

New & Interesting:

News Article from The Independent - 'Amazon Shareholders demand company stop selling facial recognition technology to governments' (June 2018)

Amazon's response here

Python examples

I was on the vodka last night and feeling controversial. How can we use face categorisation? What might be a target market? Estate Agents? Property Developments? Who might not want certain demographics to live in their new developments? It's happening people, believe me. So with a few shots of vodka, and some courage, I made these examples

1) Feminist/Not Feminist


2) Jewish/Not Jewish

3) Islamist/Not Islamist 

Names Not Down You're Not Coming In...
Remember that music video The Bouncer?




Robot Ai door policy on it's way. I promise.

Have fun. Don't take life too serious, there are many many things to experiment with using Ai, and lots not yet even realised. It is one of the great things about a new emerging technology. Remember Cyberpunk rule #101 you are just showing the world what already exists out there. Don't be offended.

Tune in next week as I down a 5th of Vodka, mount all this to a drone and use Ai to command auto-attack. 👍

Update June 2018:
Now also being discussed (ethics) in a Register Article here


Google axes Maven for drone analysis here 

more here


Friday 23 March 2018

How To Hack an Engineer

As an engineer, software developer or creative technologist, searching for something valuable and important to take part in is often like preparing to swim in an unknown pool of water.
News and social media often try to influence your skills and talents to tempt you into solving their puzzles for them. "The Next Big Thing" or "Why you NEED to learn" is usually a bit of a con. It is starting to be known as 'engineer hacking'.
Here is a nice article to help anyone wishing to learn and discover new projects and why they should tread with caution


For me, I have had to learn some new skills as I have moved along in development and engineering ideas. I don't feel so naive about throwing myself into open projects or carrot dangling companies anymore. Along the way I learned to grow side-earning incomes, accept multiple jobs at the same time and drop the weak ones, Learned to ask about funding immediately instead of many months or years down the line. Open projects, often ones which include particularly demanding admins or influencers are likely to be things to miss or be 'allowed to drift' by you, and start to begin to focus on things you might enjoy, instead of just brute forcing and being persistent with your skills to find a solution that might just not be working. Don't destroy yourself over something that does not pay. Learn to move and not keep all your eggs in just one single basket. Don't rely or accept companies or hiring companies that will reject you because you lack a certain certificate; those companies will often not be successful or efficient, and would you enjoy working for it if it is like this anyway? Could you quickly make a rival company cheaply and equally just to make a statement against them, to let them know what they have missed. 




Click here for more inspiration


Tuesday 20 February 2018

Mount Sinabung

Today I saw some spectacular footage showing the dramatic eruption of Mount Sinabung volcano. what really got me was this one video

It looked quite useful.


I extracted the frames as jpegs


Then stitched each frame to get a panorama


I get a better perspective of the scale now and I hope you do too. I liked that the person capturing the video seemed to scan the eruption with his camera, covering the whole scene but not quite being able to have it all in the frame.

Sunday 18 February 2018

Friday 2 February 2018

World's Smallest Ai Drone

48% Coffee Cup




Here is my experiment with the Movidius Neural Compute Stick to create a tiny drone which can utilise object detection. It is tested using both SqueezeNet and GoogLeNet, Alexnet is a bit slow these days. All are using Caffe as a framework for object detection. Results vary. You can lean more about using NCAPPZOO here.

Video is captured in real-time low latency, enough to fly by video.


I guess as I get more into my Neural Compute stick, I will add experiments here. At the moment i'm impressed with the speed of the Movidius processing power, it's size, cost, forum and support. Intel are really getting in the Ai game. My Nvidia Jetson TK1 is now pretty much redundant for Ai experiments. I can also do all this Live Capture on my Raspberry Pi 2 albeit a little bit more limited in which cnn you can use as tensorflow is not working with the pi. This all works just as well as on a larger mini 230mm drone.

What do you want the drone to do upon detection of what object? snap photo? tweet it?


Did I just create the World's Smallest Ai Drone?


I went to watch The Greatest Showman with my Mother last night and I have that damned song stuck in my head.
...Will ne-ver beee enuuuuuuuuu --- uuuuughhh.

Sing it with me..

Those damn onions again 😢

Here's the longer video, I will make more as I progress.

Sunday 28 January 2018

Stealth London Home


I have been living in London for some time now but always found myself struggling to meet the cost of living there. Sometimes it would be a good financial month, and others it would push me to the limit. What I have noticed in London are the many number of people living in vans, coaches and buses. The average London rent for a single person in 2017 is around £800 a month and upwards if you want your own place instead of room sharing. For minimum wage workers like myself, those who are self-employed, gig economy workers, low wage earners, and non-state employees, the rents are already too high. most workers in this category are likely to be working to survive, not working for a living, if you know what i'm saying? These many low wage industries are struggling to find employees. Not because of lack of demand but because the costs involved (the maths) of living in the city are not sustainable for us.


Some of the people coming to London are particularly inventive in their methods to try to balance themselves financially. Imagine being able to reduce that huge elephant in the room that is the monthly rent bill, it is by far the largest problem for living in London or any major city. Remove that monthly amount and your life, your worries of eviction, being made homeless, all are alleviated for a while. Social housing is pretty much not going to help you in London so forget that because you have to have lived in the city for at least 2 years to be able to be considered for government help. you also have to show vulnerability, be it health reasons, violence, or seeking asylum from oppression. And you have to also have documented proof for all of these things. There are many more things that the government add to this list of requirements, and just when you think you have them all covered they will add some more. A sad truth right now is that if you are a White, British, and Male, you can ever forget about receiving government assistance, it is a titanic moment, women and children first. But is the country sinking? I'm not so sure it is. Maybe it is just false policy.


Enough politics. Van living in the city. Living in a van will help you as a low-wage worker to earn and keep it in your pocket.

By fitting out the van properly, you can even live well with heating, insulation, washing, cooking internet, lighting, water, all of the things you normally need to get by. You can also rent a postal address these days for a monthly fee.

If you have more money you could possibly buy and live on a houseboat.

So, after working hard for a while eking out a few pounds, I managed to have enough to buy a van. I spent a lot of time thinking about my needs and decided a larger van would be better for longer living in greater comfort. The VW camper is great for weekends and narrow roads, but for longer term it is a cramped place that will quickly make you an unwell employee. A luton-size box van is a popular choice and it is what I decided to opt for. It is a general rule to go for the newest van you can afford. A fully built motorhome of similar size that is showroom new will cost you over £60,000.


The van I bought seemed to be some type of mail van with internal shelving and racking. I had to clear all this out until I had a bare internal unit. A hammer and chisel is good for removing rivets. By this stage the neighbors will be gossiping about the gypsies moving in. Stand strong. London is a conservative area, conversely filled with Labour voting workers aspiring to be conservatives. Arbeit Macht Frei, but not for the creators of this phrase.

Somethings I fitted or self-built into my van included an off grid heater to keep me warm at night, 12v lighting, storage, usb charging, and a shower. It can all be had cheaply if you are prepared to hang in there on postage times, and also install yourself.


When I first started this build I thought it would have a simple completion ending, but it seems that van building is a never ending work in progress, it's a labour of love, all your efforts are your own reward. But, I have a home that I own, I have removed my rent slavery for a while, and I feel safe warm and secure. I am not reliant on government (not that they are going to help anyway), and I feel like I have effectively doubled my wage income. Right now I feel happy, more in control of my present and future, and less under pressure. It's all suddenly become manageable again.

I am hopeful not to get robbed or have it stolen, but I also know that hard times breeds opportunistic thieves, and a certain demographic seems to be performing the robberies right now which is a problem here in London. I have fitted internal locks and and alarm.