Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:23 27 Nov 2024 Privacy Policy
Jump to

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 : kick my. mcp expander fail

Author Message
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 11:07pm 23 Nov 2023
Copy link to clipboard 
Print this post

I built a mcp23017 expander and wired all the buttons 90 degrees the wrong way. Please form an orderly queue to kick some sense.
I wondered why the buttons didn't fit stripboard designer progs. doh.


anyone else mess up stupid?
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 11:31pm 23 Nov 2023
Copy link to clipboard 
Print this post

I think the vga keyboard that is 2 wires I should try with lcd. mcp23017 total rewire.I'm thick. thought it be a nice in-out board I'll try again.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 11:34pm 23 Nov 2023
Copy link to clipboard 
Print this post

  Quote  anyone else mess up stupid?

Too many times to list... even if I could remember them.
Seniors Moments every day now.
Edited 2023-11-24 09:38 by phil99
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1057
Posted: 11:46pm 23 Nov 2023
Copy link to clipboard 
Print this post

Ditto to phill99
ChopperP
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 12:06am 24 Nov 2023
Copy link to clipboard 
Print this post

I've messed up those tact switches often enough that I make sure I always wire them up on diagonally opposite corners. Then the 90 degrees doesn't matter.
Visit Vegipete's *Mite Library for cool programs.
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 571
Posted: 07:33am 24 Nov 2023
Copy link to clipboard 
Print this post

Yup it happens to us all over time.  

20 boards with 32 SMD transistors placed PNP instead of NPN. (hand soldered   )

I miss labeled the two reals. Had to check all part reals used to be
sure I hadn't miss labeled the resistors and the caps.  


Quazee137

Ditto to phill99 & ChopperP
Edited 2023-11-24 17:35 by Quazee137
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 08:28am 24 Nov 2023
Copy link to clipboard 
Print this post

I can never remember how they work either - I end up metering one out to check. :)

"It's not logical, Captain"
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4241
Posted: 09:20am 24 Nov 2023
Copy link to clipboard 
Print this post

  Quazee137 said  Yup it happens to us all over time.  

20 boards with 32 SMD transistors placed PNP instead of NPN. (hand soldered   )

I miss labeled the two reals. Had to check all part reals used to be
sure I hadn't miss labeled the resistors and the caps.  


Quazee137

Ditto to phill99 & ChopperP


Autsch!!! That hurts. 640 parts to be replaced. That is a whole day of work...
PicomiteVGA PETSCII ROBOTS
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 06:34pm 24 Nov 2023
Copy link to clipboard 
Print this post

Using DiyLayoutCreator and like vcad, the buttons align if the right way round.
I don't know about placing buttons diagonally??

 
Andy-g0poy
Regular Member

Joined: 07/03/2023
Location: United Kingdom
Posts: 56
Posted: 08:08pm 24 Nov 2023
Copy link to clipboard 
Print this post

My repeating mistake, is pull ups (or lack of) on interrupt pins or inputs.

Older MCP did not have programmable pull-ups, so you had to physically add them.

One of the early PIC MUC's I used. Built a vivarium controller for a friend and it worked fine in testing, UNTIL one of the control lines switched.Then the system froze...

Several hours of code debugging later, I was getting annoyed. I poked my finger at the    PIC and said something rude. Well it started to work!

When the control line switched again the PIC stopped. Carefully I pointed my finger at the PIC and sure enough it restarted,. No contact with the PIC was required, just poke the finger to about 1cm of the PIC...

The control line pin was next to the reset pin when the control line changes state, there was enough leakage to put the PIC into a hold. Point at the reset pin and the charge was be drawn away and  the PIC continued as normal.

I try top remember to double check such things, but I've been caught out more than once.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 10:48pm 24 Nov 2023
Copy link to clipboard 
Print this post

got a tube of 5 16bit expanders and only used for output so will test input pullups.
nice chip.

 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 10:50pm 24 Nov 2023
Copy link to clipboard 
Print this post

  stanleyella said  I don't know about placing buttons diagonally??


Buttons aren't placed diagonally--diagonally opposite pins are connected, making sure that you cannot be connecting to two pins which are already internally connected.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 12:12am 25 Nov 2023
Copy link to clipboard 
Print this post

ncp23017 seems handy for 8 switches or on off and 8 outputs for just leds to show inputs. just 2 pins, sck,sda.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 12:51am 25 Nov 2023
Copy link to clipboard 
Print this post

Stan, Please remember:

Stan, Please note that for later versions of that chip the I/O arrangement has changed. GPA7 and GPB7 are output only. You may have to use two ports if you have eight switches.


You may not have 8 inputs on one port.

Bill
Keep safe. Live long and prosper.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 10:45am 25 Nov 2023
Copy link to clipboard 
Print this post

Hi all,

  vegipete said  I've messed up those tact switches often enough that I make sure I always wire them up on diagonally opposite corners. Then the 90 degrees doesn't matter.


That is exactly the approach I have used for years and indeed I used in the layout of the Game★Mite PCB.

Expanding on Vegipete’s description the trick is to wire the 2 connections on diagonally opposed pins as then no matter which way the switch is plonked into the PCB the switch will always be ‘correct’ way around.

Kind Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
al18
Senior Member

Joined: 06/07/2019
Location: United States
Posts: 205
Posted: 12:42pm 25 Nov 2023
Copy link to clipboard 
Print this post

Information on a PicoMite board that has a MCP23017 including test programs http://land-boards.com/blwiki/index.php?title=PiPicoMite01#BASIC_Interpreter
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 01:15pm 25 Nov 2023
Copy link to clipboard 
Print this post

Apparently the problem with A7 and B7 on the MCP23017 has always been there. They've recently updated the data sheet, that's all. Yes, you *might* be able to use them as inputs but it depends on the phase of the moon. This seems to have been a buggy chip for a long time.

The SPI version is ok (or at least better) it seems.


.
Edited 2023-11-25 23:16 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024