Commodore 64 (C64) Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
C64-ESP8266 wifi adaptor beta testers wanted
Goto page 1, 2, 3 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Help & Support
View previous topic :: View next topic  
Author Message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Thu Jul 02, 2015 11:49 am    Post subject: C64-ESP8266 wifi adaptor beta testers wanted Reply with quote

Not yet but after the weekend I should have something ready.

This is a cheap wifi telnet adaptor for the C64 based on the dirt cheap ESP8266 wifi transceiver.

Parts needed to build:
User port connector
ESP-01 esp8266 module
3v3 regulator
A couple of 3v3 Zener diodes
Resistors.

Parts needed to upload:
Arduino IDE software
Esp8266 board support
FT232 or similar USB uart

Note: you DONT need arduino hardware - this is using arduino sketches directly on the esp8266.

Post here if you're interested.
Back to top
View user's profile Send private message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Thu Jul 02, 2015 11:50 am    Post subject: Reply with quote

Here's my adaptor so far:




Back to top
View user's profile Send private message
Pyrofer
Master of C64
Master of C64


Joined: 06 Mar 2006
Posts: 1045
Location: London

PostPosted: Thu Jul 02, 2015 12:13 pm    Post subject: Reply with quote

I just bought the userport connector with the intention of doing almost exactly this !!!

I have a few options. I already have an HLK-RM04 running openWRT. I could probably use that fairly easily.
I already have an XPort wired adapter, I could probably use that.
I could order a cheap ESP and try that.

It seems most people on here are looking at the ESP as the solution of choice purely for cost and size reasons so I might have to go with that instead of my existing hardware.
_________________
Please visit my project site at
www.pyrofersprojects.com
Back to top
View user's profile Send private message Visit poster's website
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Thu Jul 02, 2015 12:20 pm    Post subject: Reply with quote

The native arduino support makes the 8266 that much nicer for simple things like this.

So far I've got basic serial<>TCP connectivity, +++, ATH and ATO implemented.
ATDT is next and then I can test it on a real 64.
Back to top
View user's profile Send private message
Mamejay
Groupie in Training
Groupie in Training


Joined: 10 Aug 2012
Posts: 89
Location: Melbourne, Australia

PostPosted: Mon Jul 06, 2015 3:13 am    Post subject: Reply with quote

I could do some testing for you Penfold.
Back to top
View user's profile Send private message
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 47
Posts: 911
Location: Chattanooga, TN. USA

PostPosted: Mon Jul 06, 2015 3:38 pm    Post subject: Reply with quote

I'm in.
I just need to order the parts.


How's flow control working?

Later,
dabone
Back to top
View user's profile Send private message
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 47
Posts: 911
Location: Chattanooga, TN. USA

PostPosted: Mon Jul 06, 2015 5:14 pm    Post subject: Reply with quote

Ok, I ordered a esp-01 and a esp-12 (more pins broken out for flow control/cd/ri???)


Later,
dabone
Back to top
View user's profile Send private message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Mon Jul 06, 2015 10:59 pm    Post subject: Reply with quote

Cool !
I've got ATDT, ATZ, ATE working - haven't plugged it in to a 64 yet.

Flow control ? What's that ?? *grin*
Back to top
View user's profile Send private message
dabone
C64 Enthusiast
C64 Enthusiast


Joined: 04 Jan 2009
Age: 47
Posts: 911
Location: Chattanooga, TN. USA

PostPosted: Tue Jul 07, 2015 2:14 am    Post subject: Reply with quote

Quote:
Flow control ? What's that ?? *grin*

Pretty worthless without it.
That's the same trouble I had using an early ethernet shield and arduino trying to do the same thing.

It kept overrunning the 64 with out hardware flow control to pause it.

PC's have these wonderful uarts with buffers that the c64 didn't have.

If you do get this running with flow control, you can add a max235 to it and have a great cheap wifi telnet modem for any rs232 device.

Ok, it does need level shifting, time to grab my 74hct04's.
Cheap and easy level shifters.

What are you using the zener diodes for? And I see 2 switches, is that white thing a rgb led?

later,
dabone
Back to top
View user's profile Send private message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Tue Jul 07, 2015 2:24 am    Post subject: Reply with quote

I was joking about the flow control.

It's not there yet, but is next on the list after I know the basics work.

My ESP modules are NOT 5v tolerant - hence the 2 zeners.
I've put them on both RX and TX in case I screw up the wiring or something tries to blast out (an admittedly weak) 5v on the 64's RX line.

Yes, the white thing is a ws2812 led that will be used for status.
Bizarrely I can't get it to work with my modem emulator code yet it works fine with another project.

The 2 switches are c64 reset and esp reset
Back to top
View user's profile Send private message
WilliamRoberts
Groupie in Training
Groupie in Training


Joined: 11 Jul 2008
Age: 42
Posts: 120
Location: Alaska

PostPosted: Tue Jul 07, 2015 2:25 am    Post subject: Reply with quote

I'm in, should have most of the parts on hand cept the esp8266. Think I have still have that stash of user connectors...
Back to top
View user's profile Send private message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Tue Jul 07, 2015 5:51 am    Post subject: Reply with quote

Got the led working on gpio2.
I forgot I had Serial1 still enabled which uses gpio2.

Does the 64 usually use rts/cts or dtr/dsr for flow control ?

I have 1 spare gpio on the esp-01 so can easily hook this to RTS to implement 1 way flow control.
The ESP is so fast and has deep buffers that I won't bother with the reverse flow control
Back to top
View user's profile Send private message
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Wed Jul 08, 2015 12:39 pm    Post subject: Reply with quote

Yay!



The series resistors I had as part of the level shifter were too high. It wouldn't even do a loop back.

I need to do flow control and dte baud rate selection next.

Questions:
In +++ command mode - do real modems buffer or discard received bytes ?

Does anyone know a standard at Command for dte bit rate selection ?
Back to top
View user's profile Send private message
Pyrofer
Master of C64
Master of C64


Joined: 06 Mar 2006
Posts: 1045
Location: London

PostPosted: Wed Jul 08, 2015 1:22 pm    Post subject: Reply with quote

Right, got the Userport connector. Does it have to be an ESP-01?

I assume the cheapest that don't mention which -x version they are on eBay are the 01 as it seems to be the cheapest?
_________________
Please visit my project site at
www.pyrofersprojects.com
Back to top
View user's profile Send private message Visit poster's website
penfold42
Immortal Grandmaster of C64
Immortal Grandmaster of C64


Joined: 05 Apr 2012
Posts: 4134
Location: Melbourne, Australia

PostPosted: Wed Jul 08, 2015 1:39 pm    Post subject: Reply with quote

Nope - most of them seem to be logically equivalent.
The variations seem to be;
More or less GPIO pins available,
more or less flash included,
Internal/external antenna
horrible or sane pin spacing !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Help & Support All times are GMT
Goto page 1, 2, 3 ... 9, 10, 11  Next
Page 1 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Tip: Get C64 Forever for super-comfy C64 emulation with pre-installed games, demos and other goodies!