Sunday, 25 October 2015

Idea for line sensor

So I had a line sensor but there's no information available about how far off the ground it should be. The dagu chassis I'm using also has adjustable ride height so I thought I would experiment with the height of it and see what sort of effective range it has.  After thinking about designing a height adjustable mount for it which I could 3D print I realised that I could have the same thing by sticking a breadboard on the front and using the different connections to play around with the height.  I guess it will affect ground clearance but I only want it to move around on a relatively flat surface; I'm not building a new mars rover.

Next step is to see how it moves and play around with the motors. After that I'm going to play around with the line sensor and see what it can and can't do.

A proper workspace.

I have an amazing and supportive wife however she likes a tidy house without bits of bike or robot strewn about. She's an interior designer and architectural visualiser so I can't blame her.

It was time to sort out a proper workspace and fortunately I had a storage room begging to be re-purposed. I ripped some shelves out and stuck my grandpas old writing desk in there; he was a professor of engineering at Newcastle University and used to mark engineering exams sat at the desk so it seemed appropriate.

I had a monitor donated to me by my friend Rich Lambert and a keyboard and mouse donated to me by Jane's studio. On top of that I had a gold plated HDMI lead that I somehow got suckered into buying when I bought a new telly. This was the perfect pi programming station and I can make as much mess as I like and I don't have to tidy up at the end of every session.

Saturday, 24 October 2015

Week 4, proper assembly

Made some good progress this week. Attended a lecture on basic programming which was useful; a lot of it went over my head but I think its important to try and absorb it anyway. I spent half the time googling words that were being used and am becoming more familiar with the terminology.

I got my mounting board printed and the measurements were fine however I had trouble mounting the motor driver board due to the bolts I was using being to long and hitting the battery. Still, 2 of the bolts were fine so I just used 2.  I put the batteries in for the motor and then removed them after bridging the wires with my arm. I figured I shouldn't fit them all until its ready to roll.  This reminded me why I've never liked electricity; you can't see it and it can kill you.

I spent some time on friday evening wiring it up and then went to the pub and drank some beer.

On Saturday morning the ubec cable I had ordered was deivered so this got attached too, I think it is now at the stage where I can get it to do stuff.



Monday, 19 October 2015

Software issues

Today I found out that solidworks 2016 is not backwards compatible. This evening I will be downgrading both windows and solidworks.

Sunday, 18 October 2015

Designing a board

This weekend I modelled all the boards etc on solidworks so I could play around with the layout of the components.
I designed a board to mount on top of the dagu tracked base which would enable me to mount everything neatly and route the wires.
I aim to make seperate mounts for the line sensor, ultrasonic sensor etc so I put a pattern of holes at one end of the board to allow things to be switched out.


Monday, 12 October 2015

First go at wiring

After ruining myself at Indymanbeercon on Friday night I decided to get the arduino setup on saturday.  This was 5 hours of pain.
Getting IDE installed was fine; I could not get the drivers installed no matter what I did.
Whether it was a hardware wizard or manually installing drivers I had downloaded I could not get it done.

In my device manager it did not say 'ports com' as it should, instead just saying 'other device' which I could not get to work. I found myself typing stuff I didnt understand into google and then getting frustrated that I didnt understand the suggestions.

I gave up and decided to have a look at the pi. This is the point I found out that my pc monitor did not have an hdmi connection. Swearing.

Saturday and sunday night I decided to get the components wired together.  I thought it would be best to just use the gpio pins on the pi and leave power distribution seperate from the board so I didnt blow anything up.  I could then lay out the power circuit on a breadboard and install resistors as necessary.

I got the control bits done by the end of the weekend. It looked like this:
I think at this point I realised that one of my project goals should be to design and build something to hold all this in a way that makes it easy to work and looks nice. I reckon I'll see if I can get it done on solidworks and 3d print it. I used solidworks for the first time last week so it should be a good bit of practice.

On Monday I went to see Tom in the robocave for some help with the arduino. We got mine working on a different laptop and none of the working nanos would get recognised by my laptop.  Turns out that if you have an arduino nano with an unlicensed driver chip then there is a high chance it will stop your laptop from working with any arduino nano.

Once again I got hooked up; Tom sorted me out with a teensy which is much better than an arduino nano and can be made to work with the IDE software by installing something called teensyduino. Unsurprisingly, it's tiny.

First tinkering

I thought id try and get my head around all the connections on the boards; this took a while as I didn't even know which type of components I had. I googled the shit out of it and managed to work out how to connect the motor driver to the chassis.  At this point I realised I was gonna need some more stuff.


Luckily ben posted up on fb that he had some more kit, after a quick trip to his robotics cave in sackville street building I had an sd card for the pi, a couple of servo's for a tilt and pan mount and an arduino.

I liked the look of the arduino as it was smaller than the pi and it seemed to be more intuitive to connect due to the pins being labelled.

I then went on ryanteck and picked up some connecting wires, a line follower, resistors, tiny snips and tweezers as the ones I use for my bike were ridiculous. This turned up on saturday with some haribo which helped my hangover.