-
Notifications
You must be signed in to change notification settings - Fork 69
New hardware version from Banggood w/ STC15W408AS? #55
Comments
I went and checked out the 52dz-diy.com website (I'm okay with Chinese) and
found this schematic.
[image: image.png]
Does it match with what you have? The store page that contained that
schematic (http://www.52dz-diy.com/goods.php?id=122) also presented a
different photo of the PCB.
Hopefully it helps.
…On Sun, May 10, 2020 at 7:50 PM Kobbe1 ***@***.***> wrote:
Hi there,
looks like their might be a new hardware revision from banggod again (or I
am doing somehting wrong).
The clock mostly worked with the original firmware, but was flickery.
Flashing the firmware with "stock parameters" from makefile worked, but
the LED segments only show some patterns.
Hardware C build option gave a different LED "pattern" but still not
correct.
No circuit diagram was supplied, the one from the website is similar but
has a few differences, resistor placement and values etc.
I found no diagram on the Chinese website, it might be there but with
google translate hard to find.
Pressing one of the buttons changes the display to 0:00 while it is
pressed.
I can try to trace connections on the PCB if you give me a hand where to
start, these matrixed segments are somewhat complex.
https://www.banggood.com/DIY-4-Digit-LED-Electronic-Clock-Kit-Temperature-Light-Control-Version-p-972289.html
http://img.banggood.com/file/products/20170116024635SKU203096.pdf
http://www.52dz-diy.com/index.php
[image: IMG_6888]
<https://user-images.githubusercontent.com/26032165/81498387-f6cb8600-92c4-11ea-96fa-879d3f2129bc.JPEG>
[image: IMG_6889]
<https://user-images.githubusercontent.com/26032165/81498392-faf7a380-92c4-11ea-90d4-6004ff2ea4a6.JPEG>
[image: IMG_6890]
<https://user-images.githubusercontent.com/26032165/81498394-fdf29400-92c4-11ea-8128-5380f0da3359.JPEG>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#55>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPEEDCZTW5VKK4JX6AESIDRQ2IJ7ANCNFSM4M5GWKRA>
.
|
Thanks, looks different indeed. Yet another version - with an DS18B20 and an different RTC IC too. |
hello everyone kit (two kits - two resistor set):
USB power cord i'm not sure if it can be programmed to this firmware because of mixed S1/RM and S2/GM, but i want to try it a bit later |
so because of different wiring, from reference design last display did not work at all: firmware expects display anodes on pins 17-20, while it is on pins 18-21, and 21 pin is for anode of last display, DS4 wrong hwconfig attached first, this one works for build mkdir -p build/ sdcc --code-size 4089 --xram-size 0 --data-loc 0x30 --disable-warning 126 --disable-warning 59 -Dstc15w404as -o build/adc.rel -c src/adc.c mkdir -p build/ sdcc --code-size 4089 --xram-size 0 --data-loc 0x30 --disable-warning 126 --disable-warning 59 -Dstc15w404as -o build/ds1302.rel -c src/ds1302.c src/ds1302.c:123: warning 158: overflow in implicit constant conversion sdcc -o build/ src/main.c --code-size 4089 --xram-size 0 --data-loc 0x30 --disable-warning 126 --disable-warning 59 -Dstc15w404as -DWITH_ALT_LED9 -DWITHOUT_LEDTABLE_RELOC -DSHOW_TEMP_DATE_WEEKDAY build/adc.rel build/ds1302.rel Name Start End Size Max ---------------- -------- -------- -------- -------- ROM/EPROM/FLASH 0x0000 0x0f4c 3917 4089 cp build/main.ihx main.hex |
@aleksey-ru52 Anyhow, if anyone wants to produce a working and tested PR, I would be glad to review it. |
I think they're trying to minimise kit parts. Or "simplify" wiring. |
To me this doesn't seem to be the case - wiring these up to separate pins does not (need to) have any additional part count - it's simply some additional tracks on the pcb - and cost would be same there - maybe it was too hard do to the pcb layout? Not sure. |
@aleksey-ru52
|
Not tested yet, you're right. |
@zerog2k need help #define DS_CE P0_1 #define DS_IO P3_1 #define DS_SCLK P3_2 // needed for asm optimizations #define _DS_IO _P3_1 #define _DS_SCLK _P3_2 manual for 408 says pin 13 is P5.5, i've try P0_1 and P5_5 - no luck |
also noticed - 3rd element displays rotated 180 deg number rotation is ok, i've changed it in led.h |
issue look like the one was reported to you, but instead of displaying 1F:7F my clock displays 1b:7b |
@aleksey-ru52 as you noted for some pins, like ds1302, those have some asm optimizations that need to be coordinated as well. For rotation and elements, you'll need to verify all the segments and driver pins are adjusted for your hardware. You may need to play around with software pullups (port configuration, per datasheet) depending upon whether certain things, e.g. ds1302, led drivers, etc have external pullups or not. |
agh... angry |
so... i've compiled @aFewBits fork... add P5_5, unflip 3d display, disconnect buttons from ligth and temp probe - and now it works just fine... temp show wrong value, but all other works... buttons should be disconnected... |
burn P1_0, so i resolder thermistor to P1_4 @zerog2k i don't want to do any modifications for key handling, it's rather easy to reconnect buttons to other pins, but maybe i'll try to fix or understand difference in ds1302 handling @Kobbe1 i can build firmware for this hw but from @aFewBits repo, it's good, it works... but you will have to reconnect buttons to other pins. maybe we can/should create issuie in @aFewBits repo and continue discussion there. |
@aleksey-ru52 Great! I certainly will rewire the 3 connections, is there anything else I need to configure in software? @aFewBits does not seem to have a hwconfig file so I guess it will just work as is? |
No quite so. It's a bit different clock design. But it's good too.
stc15.h.gz |
Thanks! Will try it out on the weekend if my family lets me :) |
@zerog2k i've try to pull-up ds1302 lines - doesn't work well... i've changed only two procedures: sendbyte & readbyte for ones from @aFewBits repo and now it works... |
@Kobbe1 you can try to build from this repo, at last:
- tmp=ledtable2[tmpbuf[2]]; if (dot2) tmp&=0x7F; dbuf[2]=tmp; } + tmp=ledtable[tmpbuf[2]]; if (dot2) tmp&=0x7F; dbuf[2]=tmp; }
|
well, it's a kinda strange, but build from from this repo with modified ds1302.c does not read time/date from rtc after power loss... |
put ds_readburst() just after ds_init() now it reads time from ds after power off, but it's quick workaround, not solution // init rtc ds_init(); ds_readburst(); // init/read ram config ds_ram_config_init(); |
@aleksey-ru52 Just tested this from this repo and your above workaround, worked fine. |
Hi there,
looks like their might be a new hardware revision from banggod again (or I am doing something wrong).
The clock mostly worked with the original firmware, but was flickery.
Flashing the firmware with "stock parameters" from makefile worked, but the LED segments only show some patterns.
Hardware C build option gave a different LED "pattern" but still not correct.
No circuit diagram was supplied, the one from the website is similar but has a few differences, resistor placement and values etc.
I found no diagram on the Chinese website, it might be there but with google translate hard to find.
Pressing one of the buttons changes the display to 0:00 while it is pressed.
I can try to trace connections on the PCB if you give me a hand where to start, these matrixed segments are somewhat complex.
https://www.banggood.com/DIY-4-Digit-LED-Electronic-Clock-Kit-Temperature-Light-Control-Version-p-972289.html
http://img.banggood.com/file/products/20170116024635SKU203096.pdf
http://www.52dz-diy.com/index.php
The text was updated successfully, but these errors were encountered: