luckykaa: (Robot)
[personal profile] luckykaa
In our previous installment (which I don't think I actually mentioned) I managed to get Pi-fighter - my Raspberry Pi - working. Also got X working. This is nice because it means I can access the system from the comfort of my laptop PC.

Today I started tinkering with bluetooth.  It should involve 3 commands:
sudo apt-get install --no-install-recommends bluetooth
sudo service bluetooth status
hcitool scan


The first command worked fine. The second one had an odd error message. A bit of googling told me I can ignore this. The third one simply refused to work. After much googling I found out that there was an hciconfig command it told me the interface was DOWN. So I needed to turn it UP

hciconfig hci0 cc up

Should have worked. Turns out I need to run as root.

So I scanned and i saw my mobile phone and my wiimote. Yay! Even managed to work out how to set up a connection (although there didn't seem an obvious way to maintain a connection). Still, doesn't matter. There are python modules to do that. Tried a cut and paste.

socket connect error (control Channel)

So I tried to use a genuine remote instead. Yeah... That worked. That's a little disappointing. I want to use a cheaper controller. I guess I can probably get this to work with a bit of C tinkering. It's network stuff though. Network stuff scares me.

The next problem - how do I actually read it. There are plenty of tutorials, but doesn't seem to be any actual documentation! Still, I think I have a basic idea about it now. I can at least read the values I want to read. And probably make it rumble :)

For my next trick I need to control some motors. Pondring concepts for ball balance bot.
Page generated Jul. 6th, 2025 08:50 am
Powered by Dreamwidth Studios