Wifi car toy na PCju in Androidu

Za brezžično komunikacijo je bil zlorabljen navaden komercialen router, reflashan z OpenWRT-jem.
OpenWRT je linux različica, ki je narejena posebej za routerje. Na ta router sem inštaliral še Ser2Net, kar pomeni Serial to net.

Na router je bilo potrebno še prispajkati še 3 žice za serijski port (GND, TX, RX) ter ga povezati z Arduinotom.

Arduino interpretira komande iz serijskega porta ter kontrolira servo (zavijanje) in pogon naprej/nazaj.

Ker je sprejemnik (ter oddajnik) na avtu WiFi, ga lahko kontroliramo z čemerkoli, kar podpira Wifi.

Deli:

  • Star avto na daljinec, ki itak ni delal
  • Arduino UNO v3
  • 10V baterija
  • Original vezje (uporabljeno za motor drive)
  • Servo motor
  • 7805 (5V regulator za servo motor)
  • Zelo velik kondenzator(preprečuje padce napetosti ter s tem reset uC-ja)
  • Router TP-Link WR741

Software:

  • Router: OpenWRT nakdano inštaliran ser2net
  • Arduino : spisan program v Cju
  • PC : spisan program v C# (uporablja XNA zaradi game loopa)
  • Arduino : Java, uporablja event driven system na touch screenu
Advertisements

About Vili Volčini

Programming is art! I have been programming since 14 years and I have big interest into video games, electronics and robotics. Currently I am studying at math university FMF and as a side projects I am working on video games. Someday I will build a real robot with intention of helping humanity, but it's long road to there!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: