-
Content Count
41 -
Joined
-
Last visited
About Taggsladder
-
Rank
Advanced Member
Recent Profile Visitors
-
Coding question, function pointer, check if null.
Taggsladder replied to Taggsladder's topic in Energia - MSP
Thank you for your input. I think you are right, I looked at some other of my projects and found that I use similar code there that works. I need to dig into it -
Hello I don't know if this is quite the right place to post this or if my title is describing this correct and maybe this is more of a general C questions, but I hope its OK to post it here. It is on a MSP430 Launchpad anyway. The code is simplified, there is more parameters passed to the function etc. // I have a function like this. void foo (char* bar) { if (!bar) Serial.print("bar is NULL"); // I want to check when NULL is passed on but this doesn't work? // Also tried (bar == NULL) and (bar[0] == NULL)... else Serial.print("bar is not NULL"); } // Usually I call it
-
Power Cycling not properly re-initializing LCD
Taggsladder replied to sutekh137's topic in Energia - MSP
[sOLVED] > QUICK AND DIRTY I got it working now. Not the best way but it does the job. Just a personal project so no worries. Running the initializing function two times with a delay did the trick for me. // Include LCD library. #include "LCD_5110.h" LCD_5110 myScreen; void setup() { myScreen.begin(); // Start LCD communication. delay(1000); myScreen.begin(); // Start LCD communication. myScreen.clear(); // Clear LCD. myScreen.setFont(0); // Set "small" font. myScreen.text(4, 2, "TEST"); // Display on LCD. } void loop() { -
Power Cycling not properly re-initializing LCD
Taggsladder replied to sutekh137's topic in Energia - MSP
Major bump I have the same problem. It works perfect except I need to reset the mcu after every powercycle or else the lcd stays completly blank. I could live with it but its just bugs the h*** out of me. Just basic sketch. In the code below I used a IO pin for powering the LCD but also tried powering from VCC with no luck. // Include LCD library. #include "LCD_5110.h" LCD_5110 myScreen; const int lcdVdd = P1_4; void setup() { pinMode(lcdVdd, OUTPUT); digitalWrite(lcdVdd, HIGH); myScreen.begin(); // Start LCD communication. myScreen.clear(); // -
Learning transistors and I have a problem :)
Taggsladder replied to Taggsladder's topic in General Electronics
Great id -
Learning transistors and I have a problem :)
Taggsladder replied to Taggsladder's topic in General Electronics
Thanks for the reply @@enl! Ok, I understand. The reverse breakdown of D5 is 200V. D5 http://www.farnell.com/datasheets/162697.pdf Though I think that I will go with the original plan of just using a DPDT signal relay switched by a transistor, find it is easier when you know exactly whats gonna be switched. Would have been neat to use them magic FET's but clearly I have some learning todo This forum is such a great place, thanks again! Kind regards, Andreas -
Hello I am working on a curcuit that need to switch two loads max 200mA. One load gets feed ground and the other load gets feed positive. VCC will be in a span of 6-30VDC. The curciut works as intended when VCC is 6VDC, but at the max span VCC 30VDC all (Q1, Q2, Q4) transistors and the FET breaks when the pin from the MCU goes HIGH. This will happen even if the connector is unconnected. Q1, Q2 http://www.farnell.com/datasheets/699988.pdf Q4 http://www.farnell.com/datasheets/1885683.pdf From what stupid me can read from the datasheet Q1 and Q2 should
-
Developing with multiple Launchpad simultaneously
Taggsladder replied to Johann's topic in Energia - MSP
Me too -
Voltage divider with zener protection problems
Taggsladder replied to Taggsladder's topic in General Electronics
I played around with that too but since the device will power from the cars battery I want as low consumption as possible.- 7 replies
-
- voltage divider
- zener diode
-
(and 1 more)
Tagged with:
-
Voltage divider with zener protection problems
Taggsladder replied to Taggsladder's topic in General Electronics
I was thinking about some sort of lookup table as you say Thanks for the help, much appreciated. Have a nice day! Sent from my SM-G900F using Tapatalk- 7 replies
-
- voltage divider
- zener diode
-
(and 1 more)
Tagged with:
-
Voltage divider with zener protection problems
Taggsladder replied to Taggsladder's topic in General Electronics
Thanks for the reply! TBT, just the word opamp scares me a little, hehe. How comes the zener is used in the link and the title is "Accurate Voltage Measurement". Is there a way to calculate this offset in software or would it be to messy? I am not looking for a accurate reading, +- 0.5V in a 10-25V span would do fine. Best regards- 7 replies
-
- voltage divider
- zener diode
-
(and 1 more)
Tagged with:
-
Hello I want to measure the battery voltage (ballpark measurement) in a car so I thought I do that with a voltage divider connected to a msp430 ADC pin, but I wanted to add overvoltage protection with a zener as in the schematics in the link below. I am using 100k / 10k in the voltage divider and a BZX79C2V7 zener. If I leave the zener disconnected I get the divider to work as expected in a linear fashion, but when I connect the zener I get the correct reading when the input voltage is 10V but if for example I double the input voltage to 20V I get a lower reading compared to when the zener
- 7 replies
-
- voltage divider
- zener diode
-
(and 1 more)
Tagged with:
-
What am I doing wrong? G2553 + Nokia 5110 LCD
Taggsladder replied to Taggsladder's topic in Energia - MSP
Strange. Changed computer and used a new Launchpad and it worked straight ahead. Well well. Goofed something up I used another library this time though. Don't know if it was the problem. Used this library from here instead, don't know the difference. https://github.com/pasky/Energia/tree/master/examples/7.Display/LCD_5110_430 Thanks anyway, sorry to bothering Kind regards Andreas -
Hello Cannot get the Nokia 5110 LCD to work with my launchpad and the G2553. First thing I noticed is that when the library example sketch (LCD_5110_main.ino) is uploaded and the LCD is disconnected the backlight pin is floating. Also there is nothing happening when pushing the Launchpad push button 2 that should enable/disable the backlight. I am using this library: https://github.com/energia/Energia/tree/master/examples/07.Display/LCD_5110 As I said with the example sketch uploaded the backlight pin (P2.1) is floating with the line below either true or false. No errors or simili
-
Thanks! Sound good. Also found this https://www.sparkfun.com/products/12009 that looks quite nice. I will play around and see whats works best for my project. Have a nice day Best regards Andreas