Connect with us

Controlling Atmega328 with router

Discussion in 'Microcontrollers, Programming and IoT' started by Xeuscryste, Jul 13, 2012.

Scroll to continue with content
  1. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
  2. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    Without knowledge of the circuit or testing you are asking someone the impossible...

    That take off header you are asking about could be anything, but I suspect it's some sort of in-circuit firmware loading or testing port, something along the likes of a JTAG...

    There are LAN to serial modules and although I don't know your purpose they are likely a better approach then probing around the board unless you have knowledge where to obtain the serial connection...

    http://www.wiznet.co.kr/sub_modules/en/product/Product_Line.asp?cate1=5&cate2=8

    http://www.mouser.com/search/refine.aspx?Ntk=P_MarCom&Ntt=187334864

    http://microcontrollershop.com/default.php?cPath=98_284
     
  3. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
    Circuit to connect atmega328 to serial port on pc?

    I have a atmega328 and a MAX232 and I would like to make a circuit to connect to my pcs serial port so I can send commands from a program I make, how can I do this? Also I have a 16mhz crystal.
     
  4. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
  5. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
    How to connect to router from computer andcontrol servos via router?
     
  6. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    I suspect this is all the same project that you have now made three post about? May I suggest keeping it all in a single thread?

    https://www.electronicspoint.com/would-routers-rx-tx-pins-t250040.html
    https://www.electronicspoint.com/circuit-connect-atmega328-serial-port-pc-t250063.html

    Get the LAN to Serial module, hook the serial module to the AVR and hook it to the Router... Using whatever specifications the LAN to Serial module requires, send the serial commands from the computer to the LAN to Serial module under those specifications, and the AVR should get them... You will have to likely write a front end for the computer, or you might be able to use some telnet software (really depends on the LAN to Serial modules requirements) and you will also need to write the code for the AVR to read those commands and do whatever to the servo...
     
  7. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
    You mean like this?

    http://www.amp-tronics.com/wp-content/uploads/ttl2ethernet.jpg
     
  8. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    Yes a module like that (at least based on the picture) , just like I explained to you in your other thread, thus the reason I suggested that you keep it all in a single thread from now on...
     
  9. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
    Do i need to "flash" the router? and how do i make a program to control the two servos, left, right etc..
     
  10. CocaCola

    CocaCola

    3,635
    5
    Apr 7, 2012
    With questions like that it's pretty clear you are WELL in over your head, and discussion at that accelerated level and the caliber is beyond what I would even attempt to get into on this forum unless you actually knew what you were doing, or at least showed some solid foundations...

    You basically need to learn how to crawl before you try out and join the Olympic marathon team...

    Start Googling how to control a servo with an ATmega328, once you master that, you can progress onto how to receive serial information with an ATmega328 and interpret that received information and make the servo work... When you master both of them, purchase the LAN to Serial module and start reading the datasheet, and you can go onto the next step...
     
  11. Xeuscryste

    Xeuscryste

    52
    0
    Jun 20, 2012
    What pins on the atmega328 go to the servos? I can't find that information anywhere..
     
  12. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,418
    2,788
    Jan 21, 2010
    Pretty much any ones that you want to.

    Here's what looks like a fairly simple tutorial.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-