How to set up an ad-hoc network between Windows and Linux:
1. Disconnect both computers from any networks
2. make sure you have wicd installed on the linux laptop
3. On windows, go to control panel->network connections
4. right click on your wireless interface
5. go to properities and on the networking tab, scroll down
to Internet Protocol Version 4 (TCPIP/IPv4) and click on it once
6. Click properities
7. click use the following IP address and enter the following:
IP address: 192.168.1.2
subnet mask: 255.255.255.0
default gateway: 192.168.1.1
and leave the other boxes blank. Click Ok.
8. Windows may yell at you, just click ok or continue.
9. On linux, open wicd and click network->create ad-hoc network
10. name the network whatever you want (the ESSID)
11. Give it the IP 192.168.1.1
12. Click ok.
13. Connect to the new network with windows
14. You're done!
Friday, June 26, 2009
Sunday, June 21, 2009
Coming soon
I just finished a website documenting the barbie car project. Once we get a video of the test run, I will post a link and go live. I will also announce the project on several websites and see if I can get on hackaday.
Random note:
Heron's fountains work underwater. The pressure from the water pushes down the air in the bottles. I could feel the water flow underwater and want to try it again with colored water in the bottles.
Random note:
Heron's fountains work underwater. The pressure from the water pushes down the air in the bottles. I could feel the water flow underwater and want to try it again with colored water in the bottles.
Monday, June 15, 2009
another update on the car
We are really only waiting on 1 part to come in the mail, our other motor controller.
Once we have that, it will take about 30 seconds to install it and get the remote control going. I was having a problem
the other day with my ubuntu laptop. After trying to install some stuff to get skype to work, I rebooted and my wifi
stopped working. I did everything I could think of and finally found a forum post that helped. It turned out that by
going to system->administration->hardware drivers, I had to enable the wifi driver. Once I did, it worked great. I rebooted
again and had the same problem, but this time the driver was enabled. I disabled it and it worked. I am now working on
getting the cameras to work. I am using ZoneMinder for linux. Its designed to be used as a home security thing, and
it can support multiple cameras. But most importantly, it can be accessed from the web and can record. It can even detect
motion and only record then, which is cool. So the way we are setting this up, we should need only a browser to control
then entire car. Just connect with hamachi and then access the page with controls and the monitor page. I also managed
to get a spare linksys wrt54g router going on only batteries. This will be how we control the car if there is no
wifi. Just fire up the router and connect to it and control it on a local network. I have been wanting to get some
relays for the arduino so i can turn stuff on and off like the router. I also got a bit more hardware done, including the
charging port. I noticed that on the back of the car was a little fake nozzle for gas. So I found a male and female
12v cigarette lighter connecter and installed it. Its pretty awesome, now you just open the little gas thing
and plug in the charger. I found a nice piece of pvc that I can use to make the rocket launcher. I plan on using
vex to build a holder for it and a gear assembly. Then we can pick what angle to launch the rocket from and put it at
0 degrees for storage. We might even be able to get a sensor on there that tells you what angle you are at or at least
when you have hit a certain angle. I also came up with a design to mount the camera with. Basically its just a
long piece of pvc with the camera at the top. Then just underneath it is the usb hub with the bluetooth and wifi dongles.
If I can find a pigtail, then I can also put the antennas from the linksys router up there for better connection.
That whole thing rotates. In the end, we will have 2 cameras. The first is the logitech that is for the main driver.
The second is the built in camera on the latop that will be looking at a multimeter monitoring battery and anything
else we want. I also still need to get some sort of tread for the tires. This thing is really close to done now.
We are planning on debuting it at bandcamp during a night practice. In which case it will need lights...
Once we have that, it will take about 30 seconds to install it and get the remote control going. I was having a problem
the other day with my ubuntu laptop. After trying to install some stuff to get skype to work, I rebooted and my wifi
stopped working. I did everything I could think of and finally found a forum post that helped. It turned out that by
going to system->administration->hardware drivers, I had to enable the wifi driver. Once I did, it worked great. I rebooted
again and had the same problem, but this time the driver was enabled. I disabled it and it worked. I am now working on
getting the cameras to work. I am using ZoneMinder for linux. Its designed to be used as a home security thing, and
it can support multiple cameras. But most importantly, it can be accessed from the web and can record. It can even detect
motion and only record then, which is cool. So the way we are setting this up, we should need only a browser to control
then entire car. Just connect with hamachi and then access the page with controls and the monitor page. I also managed
to get a spare linksys wrt54g router going on only batteries. This will be how we control the car if there is no
wifi. Just fire up the router and connect to it and control it on a local network. I have been wanting to get some
relays for the arduino so i can turn stuff on and off like the router. I also got a bit more hardware done, including the
charging port. I noticed that on the back of the car was a little fake nozzle for gas. So I found a male and female
12v cigarette lighter connecter and installed it. Its pretty awesome, now you just open the little gas thing
and plug in the charger. I found a nice piece of pvc that I can use to make the rocket launcher. I plan on using
vex to build a holder for it and a gear assembly. Then we can pick what angle to launch the rocket from and put it at
0 degrees for storage. We might even be able to get a sensor on there that tells you what angle you are at or at least
when you have hit a certain angle. I also came up with a design to mount the camera with. Basically its just a
long piece of pvc with the camera at the top. Then just underneath it is the usb hub with the bluetooth and wifi dongles.
If I can find a pigtail, then I can also put the antennas from the linksys router up there for better connection.
That whole thing rotates. In the end, we will have 2 cameras. The first is the logitech that is for the main driver.
The second is the built in camera on the latop that will be looking at a multimeter monitoring battery and anything
else we want. I also still need to get some sort of tread for the tires. This thing is really close to done now.
We are planning on debuting it at bandcamp during a night practice. In which case it will need lights...
Monday, June 8, 2009
another car update
I know I haven't given a big update yet, so here it goes. The car is painted and we have 1 wheel and axel mounted. We solved the problem with the motor controller we were having: it turns out that the one we were using was broken when we got it. Once we started using the other one we order, the code worked great. The lights responded and the voltage went from -12 to 0 to 12. I emailed the company who made them and I found out that the PWM range is not standard for them. The PWM is Pulse Width Modulation, which is how servos get talked to. Instead of sending a static voltage, it sends pulses. The length and width of those pulses decide how the servo acts. So for us, pulses of length 1ms mean that the servo is going in full reverse (0 degrees on an r/c controller). 1.5ms is neutral (90 degrees) and 2.0ms is full forward (180 degrees). The duty cycle doesn't matter that much, but should be around 20ms. On the controller that we got, its cool because if you don't supply an extrernal battery, it executes the code using the 5v it needs to run (so you can get -5v to 5v). Anyway, so we got all excited and the multimeter was reading correctly, so we plugged in the motor and barely got any movement at all. We tried different size motors and they all worked ok. We concluded that it was drawing too much current. The controllers we got could handle 3 amps continuous and 9 amps max, at which point it cuts the power to save itself. It does the same for temperature. I noticed that even after only a few seconds, it started getting really hot. Based on everything that we had seen, we concluded that we were drawing too much. We calculated a theoretical draw of 13 amps (i fried the current measuring part of my multimeter). Our solution was a giant resistor. We did some math and decided that we would do 3- 1 ohm 30 watt resistors in parallel straight off the battery. We ordered those parts yesterday and they ship today. I am also going to try to get another motor controller in the mail to replace the broken one. If all goes to plan, then we should have it working maybe by the end of the week. I have to finish up some code for the arduino and the web interface. Right now the demo page for the web interface is just php buttons. I wanted to support keyboard use to make it easier, and it looks like a bit of javascript should do the trick. I will have the mouse be in a special box that reads the keystrokes. When a key is pressed, its ID is sent as a variable to another php page that isn't loaded. That way we should be able to have php do stuff without reloading the page each time. I am still experimenting with that, but the demo works for now. Then the only thing we have to do is install everything and get the extra stuff working. The extra stuff are things like rockets, speakers, lights, etc. We plan on debuting the car at bandcamp this year. Imagine this: its night, and they are almost done with practise. Then out of now where, a little power wheels are comes driving accross the field playing music with lights. It drives the the side of the feild and launches a rocket. It is this image that keeps us working. We are still trying to think of other things to attach to the car. I thought about some sort of turbo feature. Maybe use a relay on one of the arduino output pins to trigger a dump of like an extra 6-12 volts. We also will have a pan/tilt for the webcam. The webcam will be able to see my multimeter screen, so we can keep an eye on the battery, because it can't get below 10.5v. On that note, it turns out that you can charge a battery with a charger rated at the same voltage, but lower amp-hour rating. It just takes longer. The other thing we want to do it have an airsoft gun with pan/tilt as well on the back.
Tuesday, June 2, 2009
quick update
I know I keep putting off a big post, but oh well. Got the car painted and got my code finally working. Tonight I will finish that up. I also got ubuntu and xp dual booting on my netbook. Here are the links I used:
http://www.boot-land.net/forums/?showtopic=4900
I also posted this on stack overflow which helped my code a lot:
http://stackoverflow.com/questions/941744/keyboard-input-in-php
Still trying to learn AJAX enough to capture keyboard input so we can use the arrow keys to drive the rover. Until then, I will get a button based version going for electronics testing. A nice long post is coming soon with plenty of pictures of the rover process and code.
http://www.boot-land.net/forums/?showtopic=4900
I also posted this on stack overflow which helped my code a lot:
http://stackoverflow.com/questions/941744/keyboard-input-in-php
Still trying to learn AJAX enough to capture keyboard input so we can use the arrow keys to drive the rover. Until then, I will get a button based version going for electronics testing. A nice long post is coming soon with plenty of pictures of the rover process and code.
Saturday, May 30, 2009
Catch up
Wow, a lot has happened. This is, sadly, a quick post to do a couple things.
1. A better way to do usb booting: UNetbootin will take an iso and make a flash drive bootable in a jiffy.
2. The barbie rover project is coming along nicely. Today we go most of the hardware done, so it actually has wheels and new motors and gears! The biggest thing left to do is software and electronics, plus any extras we want (speakers, rockets, etc).
I will post later with more pictures of the project and a summary of the code and the terrible process it has been. I can't wait to start driving this thing, and then start wardriving this thing. We are going to get some more work done tomorrow with the hardware and painting. I will be working on code tomorrow night (maybe afternoon to) and monday. I really hope my new plan goes as smooth as it is supposed to. anyway, more later.
1. A better way to do usb booting: UNetbootin will take an iso and make a flash drive bootable in a jiffy.
2. The barbie rover project is coming along nicely. Today we go most of the hardware done, so it actually has wheels and new motors and gears! The biggest thing left to do is software and electronics, plus any extras we want (speakers, rockets, etc).
I will post later with more pictures of the project and a summary of the code and the terrible process it has been. I can't wait to start driving this thing, and then start wardriving this thing. We are going to get some more work done tomorrow with the hardware and painting. I will be working on code tomorrow night (maybe afternoon to) and monday. I really hope my new plan goes as smooth as it is supposed to. anyway, more later.
Monday, May 18, 2009
Another car update
We have met once since the last post and have made several decisions. First of all, after getting the car, we pressure washed it and took it apart. The good news is that it now actually looks pink, not greenish gray, and the way it was laid out is friendly. We are going to order new motors for it, since the ones in it now are rusted. Replacement motors should run about $3 each. I am kind of in charge of electronics. Here is my plan. We will hook each motor up to a speed controller that will go in an arduino. The arduino will be powered from an onboard aspire one. The laptop will be feeding it C code, one program that takes in arguments that decide what to do. This will then be controlled graphically via PHP. To control it remotely, we will connect to the laptop with Hamachi. In the future, we will host a little http server on it and control it via a webpage. For now, we will use the laptop's wifi to connect to an access point. Ideally, we would have a cell phone piping internet to it so it would always have internet. Unless we can use my Dads phone, we will have to write an autoconnect shell script. I am thinking I am going to run ubuntu on it, but I am not sure yet. If so, then I have a couple shell scripts i can modify to aggressivly connect to networks. This is why 2 interfaces would be helpful. 1 onboard, 1 usb. It would always have 1 connected. The rules would be to always connect to an open network when the signal was above a certain level, and to try to crack wep networks by letting the operator know that they are in range and it is trying to crack. then it could store these keys on a keyring for later use. For the first beta test, we will be using a closed local network. You will also be able to control it via an ad hoc or p2p network. Then of course, you have to be within a certain range. There is a lot more to do, and we are going to order parts tomorrow. I can't wait to start playing with an arduino, I have heard so much about them. More later.
python -m SimpleHTTPServer
Which is way smaller than using Apache or something when all we need to serve is a single page of PHP. We will remote control it with SSH. I am less concerned with hard drive space than I am with RAM. The name of the game is minimal power usage, because we would like a long battery life. Yes, I know there are all kinds of great little linux boxes, or I could use a pico ITX, or a linutop (runs off 9v, very tempting), or even an EEE pc or something. The problem with those options is money. We don't have a lot to spend on this at all, and most of the money is going to be used buying the controller and battery. Unless we can mooch those off of someone, the budget is small. If we do end up having to buy a machine, we will probably end up getting a pico ITX, or an EEE pc because of simplicity.
As for scripting, I found something called airoscript yesterday. It is designed to be used with aircrack-ng and that suite of tools. It basically scans for networks and recommends attacks based on the encryption type. That combined with a simple network setup script should be really nifty. Airoscript even has a keychain thing so you can save old keys and use them again later rather than recracking. The problem with jumping on encrypted networks is going to be time. I really don't want to have to sit in front of a house for like 30 minutes waiting for IVs to come in, so that part will be experimental at first. Well, the whole thing will be experimental at first. Anyway, we plan on using 2 wifi cards, so we can be connect 100% of the time. I'm gonna go look for a cheap EEE pc now. More as it comes.
Edit:
Pictures coming soon. Also, to fund this, we are starting a little computer repair business. This will be interesting. Got a lot going on right now, will post more details when I have time.
python -m SimpleHTTPServer
Which is way smaller than using Apache or something when all we need to serve is a single page of PHP. We will remote control it with SSH. I am less concerned with hard drive space than I am with RAM. The name of the game is minimal power usage, because we would like a long battery life. Yes, I know there are all kinds of great little linux boxes, or I could use a pico ITX, or a linutop (runs off 9v, very tempting), or even an EEE pc or something. The problem with those options is money. We don't have a lot to spend on this at all, and most of the money is going to be used buying the controller and battery. Unless we can mooch those off of someone, the budget is small. If we do end up having to buy a machine, we will probably end up getting a pico ITX, or an EEE pc because of simplicity.
As for scripting, I found something called airoscript yesterday. It is designed to be used with aircrack-ng and that suite of tools. It basically scans for networks and recommends attacks based on the encryption type. That combined with a simple network setup script should be really nifty. Airoscript even has a keychain thing so you can save old keys and use them again later rather than recracking. The problem with jumping on encrypted networks is going to be time. I really don't want to have to sit in front of a house for like 30 minutes waiting for IVs to come in, so that part will be experimental at first. Well, the whole thing will be experimental at first. Anyway, we plan on using 2 wifi cards, so we can be connect 100% of the time. I'm gonna go look for a cheap EEE pc now. More as it comes.
Edit:
Pictures coming soon. Also, to fund this, we are starting a little computer repair business. This will be interesting. Got a lot going on right now, will post more details when I have time.
Subscribe to:
Posts (Atom)