stc 15f104W data sheet required

Hi
Just wanting to know more about this STC 15f104W chip and its funtion if possible.

i have done a google search but little is showing.

Only sellers and manufactures of where they are imported from but i cant seem to get any detail data sheet of the function to this microcontroller.

Here's the datasheet if you can get it to load. Their website is agonizingly slow, at least for me (probably faster if you access it from china - I've seen that before) - it never loaded for me. I suspect it's written in chinese, though...

http://stcmcu.com/datasheet/stc/STC-AD-PDF/STC15.pdf

Update: It's in english, if you wait long enough. I've seen worse datasheets. Looks like it's a modernized replacement for a 8051-like micro. ISP programming is overUART (!) and they have GUI tools to do the flashing. Huh.

Hi
Unfortunately this does not load for me.

Hi!
Here are a copy: http://zybernic.se/~dragon/STC15.pdf Note, its 26 Mb file.

Sincerley!

The link that drAzzy provided does work - it just appears like it doesn't because it links to a 1473 page pdf document in Chinese - which will take quite some time to load.

Are you specifically referring to this board?:

s-l140.jpg

As drAzzy mentioned, the processor is an 8051 clone with 6 I/O, 4k of flash, 128b of ram and 1k of EEPROM. It has a programmable internal programmable clock up to 35mhz with 2 programmable timers. The chips are cheaper than cheap at about $0.17 US in quantity.

These have the 15F104W mounted as well as the USB to serial chip CH340G. I have been unable to find a schematic for this board - as it appears that there are solder pads to configure the board as 3.3v or 5v. That turns out to be a moot point because the 15F104W is a 3.6 to 5.5 volt part. It would have to be re-chipped with a 15L104 to make it a 3.3 volt capable board. No matter though, they work fine right out of the antistatic bag at 5 volts. The bootloader is already on the chip, you just need a loading package which is available from STC as well as an open source version in Python.

An English translation of the datasheet can be downloaded from their website:

STC15-English.pdf

The datasheet is about 11MB so it does take a few minutes to load. Once you have it open in your browser, save it to disk for future reference.

If you need help on how to get started with this board, just ask, I should be able to point you in the right direction.

s-l140.jpg

DragonII:
Hi!
Here are a copy: http://zybernic.se/~dragon/STC15.pdf Note, its 26 Mb file.

Sincerley!

That's another useless 100% Chinese version from an unknown source, unless of course you read Mandarin. I reference a 100% English version in my post, direct from the manufactures site.

avr_fred:
An English translation of the datasheet can be downloaded from their website:

STC15-English.pdf

Hi
Thank you for that.

That link worked great.

With regards to the board i have a different microcontroller altogether and attached to it is an ESP8266 wifi module that i purchased from ebay that has a relay to this that i am trying to get this to work.

I have yet to be successful in toggling the relay with the correct sketch program.

This is why i have asked about this microcontroller because there is only a few component of the board and was interested to learn more,

With the module removed there isnt much to this like some capacitors resistors, and a 3 to 5 voltage regulator like was mention in this post and that about it

I am hoping to better understand the schematic so to have this relay switching over.

So where's the STC15 in there? o_o

DrAzzy,

You can see the bottom six pins of the package under the 8266 antenna...

TonyM:

Are you trying to toggle the relay through the ESP8266 via wireless? or have you removed the ESP board and you're just driving the relay from the 15F104W? It't not all clear to me what you're trying to do. If you're trying to toggle the relay over an IP connection, you'll need to know the message format to send to the ESP8266 in order to toggle the relay. That information should be available from the module manufacturer. Please explain what you're attempting to do.

DrAzzy:
So where's the STC15 in there? o_o

You will get a better view if the ESP8266 wifi module is removed, but here is another picture that you might be able to see it.

avr_fred:
DrAzzy,

You can see the bottom six pins of the package under the 8266 antenna...

TonyM:

Are you trying to toggle the relay through the ESP8266 via wireless? or have you removed the ESP board and you're just driving the relay from the 15F104W? It't not all clear to me what you're trying to do. If you're trying to toggle the relay over an IP connection, you'll need to know the message format to send to the ESP8266 in order to toggle the relay. That information should be available from the module manufacturer. Please explain what you're attempting to do.

Ok sorry about this if there has been confusion here but i ddint want to cross post or ask this same question again as this isnt really allowed and my topic can be viewed here ESP8266 wifi module purchased from Ebay - Project Guidance - Arduino Forum

In simple terms i want to activate the relays through wifi in my web browers as i plan to use this to control the opening and closing of my sliding gates to my home.
I hope this clarifies matter.

So far all i can do is load the program through a serial to usb cable using the converter that i purchased seperatly the IDE program and the only comands i can get it to do is reduce the rate that the Led on the PCB to blink, and this is about it
It does work wirelessly and connects to my home (modem/router) and i have added an extra line to the blink program as a test trial and it seem to be responding but the onboard relay is doing nothing at this moment.

Sorry, but I'm still not clear as to what you are doing.

  1. Which IDE are you using? If Arduino, which version?

  2. Do you remove the ESP8266 from the relay board, connect it to your serial<>USB and download directly into the ESP8266 and then re-install?

I suspect that is what you're doing, but I'd like clarification from you before I explain what I think the misunderstanding is.

Hi avr_fred
Yes i do remove the ESP8266 seperatly and connect this to the Serial to USB converter through my pc which power this and loads this program.
Once it is loaded i then reinstall this back on the board.
I would think this is what i am doing wrong.
The IDE is the latest version downloaded form this site.

Ah, now I see said the blind man...

What you've effectively done is render your relay board/ESP8226 unusable. But all is not lost...

The problem occurred when you thought you had to program something with an IDE to get the relay to function. You didn't need to go to that trouble, you bought a ready made solution but due to the way the Chinese eBay sellers work, you didn't really know what you bought. As delivered, that relay board should have worked as-is, you just needed to know what code to send to the ESP8266 to make it turn on and off. This would have been sent from the device attached to the access point that the ESP8266 creates.

The ESP8266 communicates over a serial connection called SPI which is what the 15F104 is there to do. In reality, it isn't needed at all to control one relay but the 15F104 is cheap as dirt in China and well, they use them for lots of things that need a few I/O. So why can't you control the relay? Because it is most likely wired to one of the port pins of the 15F104, not directly to the ESP8266. You can verify this by tracing the circuit for the relay coil, if this is something you're capable of doing (don't know your skill set).

So what I think you've done is break the software connection between the 15F104 and the ESP8266 by re-flashing the latter.

If I had a decent photo of the top and bottom side of just the relay board, I might be able to make out enough detail to say for sure the relay is controlled by the 15F104 and not the 8266 if you can't work out the connection details.

That would be the likely scenario of what you just mention.

Still just having the unit as is and programmed by the manufacture, it wouldn't have helped me out as it did not come with any instructions on how to access the unit for me to input my modem SSID and Wifi password..

The main issue now is how do i write up the code which is in C++ which is nearly impossible for me.

It shouldn't be a very big code or sketch to write up as its just a on and of instruction

As with the relay i am able to trace this back to the microcontroller to confirm that the wiring is connected or I can even if you wish take a detailed close up photo of the PCB front and back and provide you a link for you to view this.
Providing i have permission to PM you the photo images.

Thanks

Tony

I just received the data package from the Chinese manufacturer. It's about a 10 meg file so I cannot attach it. I'll put it up on my Google drive and post a link in a just a bit...

The relay is on a port pin of the 15F104 - so it is the controller. That's downright funny because the processor on the 8266 can run circles around the the 15F104 and not break a sweat. I guess it's true that when the only tool you have is a hammer, every problem looks like a nail.

From what I can see in the docs, it looks like the 8266 is just running the standard firmware which you can reload, set the baudrate back to 9600 and have it communicate with the 15F104 which can then toggle the relay.

Here you go. ~10 meg zip from Helen at lctech-inc.com, a.k.a Shenzhen LC Technology Co.,Ltd.

LC Relay Docs

I hope this gets you going...

Hi avr_fred

Sorry for the late reply as i have been a little bit busy and for a quick update.

Firstly i should say thank you for all your efforts to help me locate this added information and files for my wifi controller.

You have surely exceeded yourself.

I am very impressed and shocked that you went that little but further in assisting me in locating that missing zip files and program.

Truly a sincere thank you from my heart. I am speechless.

In summery the seller should have provided me a link to these files and information.
This has been a little bit disappointing. I just assumed that i could go with the flow and do a google search and locate this myself, unfortunately it proved a little bit more difficult than expected.

I guess thats what happens when you deal with an overseas supplier and thats what you get when dealing with someone that is from a non English speaking background

You see my friend they dont understand a word of English like i did when i emailed them for help but when it comes to money they are all fully fluent. I guess thats with all languages.

What can i say, you have taught me alot but although, i didn't fully understand the hammer and the nail part that you were referring to, but i do have a hammer at home and thought you were asking me to make the hammer part of my project by smashing it down very hard with one full swing.....lol ....yes that did cross my mind at time, that is if i couldn't get this project to work

But for now i am still tinkering around and still getting a feel for this.

Great work mate and thank you once again. ( i will keep you posted once i get all my scientific experiments under control ) :o

Tony :slight_smile:

Hi, pessal.
Sorry for the weak English.
I also bought this module from China.
I am unsuccessful to program in Arduino IDE.
I asked the seller for the datahseet of the board and the schematics, I will try to change it, removing the STC15F104W, if it is possible for me.
Any news?
Help me

Tonymura:
You see my friend they dont understand a word of English like i did when i emailed them for help but when it comes to money they are all fully fluent. I guess thats with all languages.

Indeed - there is but one universal language, and that is the language of Mammon, of wealth - the one true God.