Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : DIN @ 3.2v, insists it is zero....
Author | Message | ||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
This has me a bit lost. MM+ E64, external 4k7 SIL pull-up array, connected to an MCT6 dual opto-coupler. When the opto is active, and it's transistor is pulled down, the input is zero - exactly as it should be. When you remove the DC from the MCT6 LED, the MM+ I/O pin goes high, but the MM+ only reads this as 0.00322581 This number is always the same, and across any other pins I setup as inputs. Has anyone seen this, cos it has me baffled - it should be working, but isn't. The voltages are correct on the pins, but MMBASIC responds with this really odd result. Smoke makes things work. When the smoke gets out, it stops! |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
UPDATE: Perhaps we had a corrupted firmware somehow? I flashed the latest into the E64, and everything is as it should be - no odd results for the digital inputs. My brain hurts. "Homer sleep now....." Smoke makes things work. When the smoke gets out, it stops! |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2290 |
3.3/1023=0.00322581 cheers, rob :-) |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
OK - how the hell was MMBASIC deciding to do it that way I wonder? I've never seen that behaviour before. This particular E64 I have used for several things during testing, so it is indeed possible I corrupted it somehow, some way. It's OK now once reflashed, which is all that matters. Smoke makes things work. When the smoke gets out, it stops! |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Now the question is: How it did get corrupted in the first place. A reflash should never have to be done. In all my years(decades) of experience i never ever needed to reflash a chip to get it working again. A reflash would indicate a hardware failure in the chip which is very unlikely. And if it is , better discard the chip as it will happen again. My feeling is that it is software that somehow corrupts the flash contents. My only reasoning that it happens is that it happens while during a power brownout. To prevent that use a supervisory chip. Microblocks. Build with logic. |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2290 |
somehow it was taking the logic '1' and deciding it needed to interpret it as an analog value (that ranges between 0 and 1023). i guess there is an internal table within mmbasic (in RAM) that tells how to interpret each pin - as analog, digital, counter input, etc., and that this was corrupted. i presume resetting and/or cycling power did not fix the issue; perhaps the corruption was in the code that initialized this table upon power up? cheers, rob :-) |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
No, resetting the power DID NOT clear the problem. Reflashing did. This unit did have the ALPHA for the PLAY WAV on it at one point in time(the board was labelled as such), so it is indeed possible that the alpha for this was perhaps causing some issue - who knows - that's what I will put it down to at this stage, as an alpha can be notoriously unstable. No problems since reflashing to the latest stable anyway. Hopefully it will stay that way now. Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5911 |
I think that is bug that was found and squashed. I forget which version fixed it. Either that or it's getting too wet over there! Jim VK7JH MMedit MMBasic Help |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
Yes, we did get rather a good dumping of H2O from Mother Nature over the weekend. 175mm in 24 hours, they are saying. Biggest rainfall in July since 1918 when the records started for our area. Lots of water.... Smoke makes things work. When the smoke gets out, it stops! |
||||
GoodToGo! Senior Member Joined: 23/04/2017 Location: AustraliaPosts: 188 |
Feel free to send some water our way. One pretty dry winter over here... Mind you it means we're having some absolute cracker sunny days GTG! ...... Don't worry mate, it'll be GoodToGo! |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
I may be wrong, but it seems like your silkscreen says... Ajust voltages and THEN install jumpers. You might want to adjust this before you go to pcb... Ajust is a caustic blend that helps sustain a pH range that is ideal for controlling pathogens in the chiller. Ajust is used in conjunction with Peragonn or Protec, allowing their antimicrobial activity to be maintained for a longer period of time. It also has approval for usage in organic processing. |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
WELL SPOTTED!!!! I only got five of these PCB's made, as they are as big as the 7" LCD they are paired up with, and that size board is expensive. Surprised(and annoyed!) that I miss-spelled that! Smoke makes things work. When the smoke gets out, it stops! |
||||
CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 1985 |
for the love of god don't google it!!! (like I did) |
||||
Print this page |