Internet connected PSoC3

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hey guys,

   

I've built an internet connected PSoC device,based on the ENC28J60 chip.This is a webserver(fully working,and quite robust.) and also a webclient(this part isnt flawless yet.),and can also support DNS,UDP TX/RX,so NTP,WOL etc can be easily built in.

   

My code is hosted at my github account,and currently the webclient part is untested,but the rest of it,inclusive of DNS works fine.

   

I havent posted up screenshots or network traffic captures,but I shall do so soon.

   

The code is built really modular,and can be expanded and customized with ease.Its also heavily commented,so newbies can play with it too. 🙂

   

I shall write out more documentation and examples soon too.Once I get the webclient working,I'll try make this a component.

   

CODE - https://github.com/kmmankad/ENC28J60-PSoC3

   

I'll end with some screenshots...

   

   

And the working Ping:

   

   

 

   

PSoC Rocks,

   

 

   

Regards,

   

kmmankad

0 Likes
1 Solution
Anonymous
Not applicable

Very cool! I'm curious how much traffic the PSoC 3 can handle.

View solution in original post

0 Likes
18 Replies
Anonymous
Not applicable

The project is open source and  is licensed as CC-BY-SA 3.0.

0 Likes
Anonymous
Not applicable

Very cool! I'm curious how much traffic the PSoC 3 can handle.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I have to contradict to your post: 36°C is not "cool", á contraire!

   

Bob

   

Well done project!

HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

You rock!

Anonymous
Not applicable

Thanks for the kind words guys!..

   

@Bob - Well,in India in summer,36 is cool 😛

   

I'm having issues with my internet connection here,but I will defn add more docuementation,code examples and traffic dumps of packet transactions.

   

Once I get the webclient functionality up,I'll see if I can use a dynamic DNS service to host the webserver online.We can then stress test it too! 😛

0 Likes
Anonymous
Not applicable

Good news,the webclient part works too!

   

I made it push DieTemp values to a COSM feed for a short time.You may check out that feed here. https://cosm.com/feeds/65875

0 Likes
Anonymous
Not applicable

Updated the code,with a bunch of fixes and such.Webclient,Webserver,DNS,ARP,PING,UDP all work perfectly.

   

 

   

Feel free to give the code a spin with an ENC28J60 module.

   

 

   

Code here : https://github.com/kmmankad/ENC28J60-PSoC3/

   

 

   

I'll work on getting some more examples out there.Maybe DHCP support too.

0 Likes
Anonymous
Not applicable

Added two new examples,

   

1.Generic UDP Rx/TX github.com/kmmankad/ENC28J60-PSoC3/tree/master/ENC28J60-BasicUDP.cydsn

   

2.COSM Client(Upload data) github.com/kmmankad/ENC28J60-PSoC3/tree/master/ENC28J60-COSMExample.cydsn

   

For the testing UDP RX/TX,I wrote out a small python script that gives an interactive textual environment with any connected network device capable of UDP on the selected port.

   

Heres a screenshot of PyUDPComm v1.0(https://github.com/kmmankad/PyUDPComm) in action

   

   

 

   

PSoC Rocks,

   

 

   

Regards,

   

kmmankad

0 Likes
Anonymous
Not applicable

Added a new example,

   

COSM Read Feed example - https://github.com/kmmankad/ENC28J60-PSoC3/tree/master/ENC28J60-COSMReadExample.cydsn

   

This example reads data from a pre-existing feed on COSM.com.Two things that this can directly be used for are:

   

1.Monitoring remote sensors: Say you have a SensorA,connected to the internet and uploading its data,you can have this code running on a PSoC connected to COSM.com,and get that data,without requiring a PC in between.You can also retrieve the data as a graph( PNG image),and then draw that onto an LCD(?).

   

 

   

2.Control of devices via the web interface on COSM.com : Since you can set datapoints for feeds on COSM.com,you could set a certain value,and make the PSoC act on that when it downloads that in.

   

 

   

PSoC Rocks,

   

Regards,

   

kmmankad

0 Likes
Anonymous
Not applicable

Heres a picture of the device I've been working on.

   

   

I call it,the EzPSoC3 - 'Webbie' . Based on my EzPSoC3 board,its currently stuck on my room's wall,uploading temperature every minute to https://cosm.com/feeds/65875

   

The USB cable is only for power and to upload new code,if required.(yes,via a USB Bootloader).

0 Likes
Anonymous
Not applicable

kmmankad great work can you tell is there any way that i can use your psoc online and see the ouput in any simulator so that anyone who cannot buy psoc or one who is not having psoc with him can try out his project.

   

cloud implementation of psoc kit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

@kmmankad

   

 

   

Just a thought, maybe plot a non averaged temp reading so there is "life"

   

to the display of data, or both an averaged curve and a sample to sample

   

plot.

   

 

   

Super application, this is why we are going to need IPV7000 soon, the number

   

of nodes on the planet is going to explode.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Nice setup and awesome work on the stack.

   

I was wondering, did you write  t he stack from scratch? 

Anonymous
Not applicable

HI  kmmankad,

   

Been to you blog page and good work. I may copy you code to try some ideas. BTW do you still have the EZPSOC3 PCB? Or you can ask people here ang order somemore for those interested. 🙂

Anonymous
Not applicable

Hey kmmankad
Hows your projects going on?

   

any new project on you are working?

Anonymous
Not applicable

Hey all,

   

Thanks for the kind words.

   

I'm going to clean up and add more features to the IP stack.Though,with a RaspberryPi for just $25(almost the price of a single PSoC3 chip...),writing a network stack for the PSoC3 feels a little redundant.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I belive the kick about having a network stack in a PSoC3 or 5LP is that you can have a (nearly) single-chip solution for data aquision. As you all have experienced (at least I hope so) there are still resources left when implementing a project (or you'll have to choose a larger chip).

   

 

   

Bob

0 Likes
MaR_264466
Level 3
Level 3

I am unable to use this project for a PSoC 5 design. Can you advice me on the changes needed for use with PSoC 5?  

0 Likes