reaper7 67 Posted July 19, 2013 Share Posted July 19, 2013 @@abecedarian - I understand the idea of this implementation, but I would like to know the practical and reliable solution. abecedarian 1 Quote Link to post Share on other sites
abecedarian 330 Posted July 19, 2013 Share Posted July 19, 2013 @@reaper7 It's an analog solution to what would otherwise need a digital solution. From what I understand, using analog dividers doesn't as require much de-bounce processing. And if you're trying to make as many GPIO available as possible, it makes sense to use the ADC when you can. Now, my disclaimer is that I do not know much about anything. What I'm saying makes sense to me within the boundaries of what I know. I could be wrong. Quote Link to post Share on other sites
kodi 16 Posted July 19, 2013 Share Posted July 19, 2013 I just received 10 LCDs for $10.5 shipped. If anyone is interested here is the link to the seller: http://www.aliexpress.com/item/High-Quality-LCD-for-Nokia-1202-Free-Shipping/955830561.html exactly 3 weeks from the payment to receiving goods. These LCDs are the ones with vias on flex. Quote Link to post Share on other sites
RobG 1,892 Posted July 19, 2013 Share Posted July 19, 2013 Sorry to disappoint you guys , but my switches are not analog. Those RCs you see are for hardware denouncing. I didn't want to use analog for 2 reasons. It's easier for a beginner (target user for my board) to use digital IO and I you can press 2 switches at the same time. If you want to use analog way, here are the values for a 5 switch setup, 4k7 from Vcc, 5 resistors to GND: 22k, 10k, 4k7, 2k2, 1k2. This will give you Vcc/GND: 1/4, 1/3, 1/2, 2/3, 4/5 Quote Link to post Share on other sites
reaper7 67 Posted July 19, 2013 Share Posted July 19, 2013 @@RobG, tnx for the info. I found a analog solution which supports (partly) 2 buttons at the same time: http://forum.arduino.cc/index.php/topic,8558.0.html Quote Link to post Share on other sites
RobG 1,892 Posted July 19, 2013 Share Posted July 19, 2013 Well, the solution I have mentioned before will let you use all 5 buttons at the same time. Here's another one, serial instead of parallel. R6 could be 1k, 4k, or 16k, or even 0k5 or 32k. reaper7 1 Quote Link to post Share on other sites
spirilis 1,265 Posted July 19, 2013 Share Posted July 19, 2013 That one still fit in the 5x5cm? Kinda looks like it. Did you hide the connector underneath? Quote Link to post Share on other sites
RobG 1,892 Posted July 19, 2013 Share Posted July 19, 2013 Yes, it's 5x5 (1.95"x1.95") and yes, connector is under LCD. Quote Link to post Share on other sites
bluehash 1,581 Posted July 23, 2013 Author Share Posted July 23, 2013 Nokia 1202 LCDs now available in The 43oh Store. spirilis 1 Quote Link to post Share on other sites
spirilis 1,265 Posted August 1, 2013 Share Posted August 1, 2013 I just received 10 LCDs for $10.5 shipped. If anyone is interested here is the link to the seller: http://www.aliexpress.com/item/High-Quality-LCD-for-Nokia-1202-Free-Shipping/955830561.html exactly 3 weeks from the payment to receiving goods. These LCDs are the ones with vias on flex. Man these things are just like the nRF24L01+, dirt cheap & getting cheaper!! Quote Link to post Share on other sites
RobG 1,892 Posted August 13, 2013 Share Posted August 13, 2013 I just received 10 LCDs for $10.5 shipped. If anyone is interested here is the link to the seller: http://www.aliexpress.com/item/High-Quality-LCD-for-Nokia-1202-Free-Shipping/955830561.html exactly 3 weeks from the payment to receiving goods. These LCDs are the ones with vias on flex. Has anyone used these with success? I have a batch, but they do not work as nice as my other batch. Not sure if it's my config, reset, or else. EDIT: Found the answer, it was reset. My first batch of LCDs works great with 30ms RC reset. The second batch doesn't. I had to get rid of RC and connect reset to a pin. Reset sequence that works for both is: reset low, 100ms delay, reset high, 100ms delay, init LCD. Quote Link to post Share on other sites
spirilis 1,265 Posted August 13, 2013 Share Posted August 13, 2013 Humm, I need to consider that as I'm having trouble getting mine to do anything on the Hercules even though my logic analyzer shows correct data. Sent from my Galaxy Note II with Tapatalk Quote Link to post Share on other sites
spirilis 1,265 Posted August 14, 2013 Share Posted August 14, 2013 Figured I'd post here for the hell of it ... After several days of trials & tribulations, I got the 1202 to show up reliably on the Hercules TMS570 LaunchPad using FreeRTOS--I actually wrote a driver "task" that handles requests via a queue, so it can receive graphics or text from multiple threads. The journey included finding a major omission/bug in HALCoGen's FreeRTOS implementation (several functions missing from the MPU port, which is funny cause the Hercules has an MPU and uses it by default!), learning some uglyness about the HALCoGen SPI functions' behavior and also discovering that TI interprets CPHA (SPI clock phase) opposite everyone else on the Hercules platform, just like they do on the MSP430 USCI platform. Without further adieu, we have 0x55 written to all memory buffers (horizontal lines): Code needs a lot of cleanup, plus text management & fonts aren't implemented (just writing direct graphics... I want the driver task to understand & manage text) so I'll wait a while before releasing. The client task which generated the horizontal lines looks like this: void LCD_test(void *pvParameters) { Herc1202Handle lcd; uint8_t *scratchbuf; long i; scratchbuf = (uint8_t*)pvPortMalloc(16*6*9); lcd = Herc1202_Open(); Herc1202_Invert(lcd, 1, scratchbuf); for (i=0; i < 16*6*9; i++) { scratchbuf[i] = 0x55; } Herc1202_Write(lcd, scratchbuf, 16*6*9); while(1) taskYIELD(); } RobG, Rickta59 and bluehash 3 Quote Link to post Share on other sites
bluehash 1,581 Posted August 14, 2013 Author Share Posted August 14, 2013 Success! Quote Link to post Share on other sites
spirilis 1,265 Posted September 23, 2013 Share Posted September 23, 2013 edit: Uhm, accidentally put CS on P2.7 instead of P2.5, let me fix that ... Fixed. Minor update on this boosterpack- After reading through TI's new official Build-Your-Own-BoosterPack rules, http://www.ti.com/byob ... I've remapped some of the pins for a new v2.3 release of the boosterpack design: SPI CS = P2.5 ("SPI_CS_Display") Backlight LED transistor gate = P2.6 (PWM Output) Pushbuttons = P2.0, P2.3 (GPIO (!)) Alternate RESET line goes to P1.3 (GPIO (!)), though it still connects to the LP's RESET line by default. SPI MOSI connects to the USCI MOSI pin (P1.7) by default, not USI (P1.6). With these changes, per the BYOB page, I can properly include the LaunchPad rocket logo and I added "remappable" to it to indicate as such. Schematic: DipTrace Schematic - Nokia1202_BPak_v2_3.pdf Elecrow/Seeed/ITead gerbers: Elecrow_Nokia1202_v2_3_5x5.zip OSHpark gerbers: OSH_Nokia1202_v2_3.zip DipTrace Design Files (.dch schematic, .dip PCB design): Nokia1202_BPak_v2_3_DipTraceDesignFiles.zip bluehash 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.