Jump to content
43oh

chicken

Members
  • Content Count

    908
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by chicken

  1. chicken

    Mailbag

    @@bluehash that was my worry as well. Luckily I just received the correct replacement. However this one came directly from Fort Worth, TX. The original shipment was processed by Digi-Key, judging from the the labels and sent from Thief River Falls. So there's still the possibility of a mislabeled bin somewhere in a warehouse in rural Minnesota.
  2. @@aam to your question about the measurement time vs result: Note that the library just counts pulses (or more precisely how often a signal changes from high to low low to high). The frequency in Hertz is calculated by dividing the number of counted pulses by the measurement time in seconds. Measuring for 1 second is the most convenient as no additional math is required. You will notice that there's a trade-off between responsiveness (i.e. fast update rate) and precision (long measurement time).
  3. chicken

    Mailbag

    My free shipping bounty came in today. All analog components need to be delivered in an anti-static bag, TI certainly takes that seriously. But unfortunately something went wrong here :-(
  4. Re CounterLib: The first example given in the documentation may be a good starting point. https://github.com/astuder/CounterLib-Energia Counter<> MyCounter; // create counter that counts pulses on pin P1.0 void setup() { Serial.begin(9600); MyCounter.start(); // start counter } void loop() { MyCounter.reset(); // reset counter to zero delay(1000); // wait one second Serial.println(MyCounter.read()); // read number of pulses during the last second delay(1000); // wait another second }
  5. Anyone going to the Seattle Maker Faire this weekend? @@Fmilburn and myself will be be there tomorrow (Saturday) morning.
  6. That's a shame :-( Maybe there's a way to hack it. Though it's probably all integrated into a single IC.
  7. PS: You could try to put the diode between 5V and the LDO. Won't work with all LDOs but worth a try. I regularly use the MIC5504, which works in that setup as long as EN is connected to VIN.
  8. Chapter 24.3 of the datasheet specifies 3.15 to 3.63 V for recommended operating conditions. http://www.ti.com/lit/ds/symlink/tm4c123gh6zrb.pdf Also see chapter 24.6.2:
  9. There are plenty of 3G USB dongles on AliExpress. E.g. this one: https://www.aliexpress.com/item/beautiful-white-3g-sim-card-modem/520949234.html The question is of course, if there are Linux drivers for it. But at least Windows 2000 is supported :-)
  10. @@Rei Vilo Uses too many of the IOs on the 40-pin header. This one looks more useful: https://www.tindie.com/products/marcel/raspberry-pi-zero-ethernet-rj45-and-usb-hub-shield/
  11. My Pi collection of just tripled today. Any suggestions on how to network the Zero?
  12. It's a modified aquarium pump with an improvised foot pedal (piece of wood with a hole to cover with your toe to enable the suction action). The airflow is not sufficient for larger parts, but 0603 works great. I got it off eBay two years ago for $20 or so.
  13. The MSP430 compiler was limited to 16KB of compiled code. Not a big deal in many projects, but definitely a barrier for more complex projects. Especially given the newer LaunchPads having MCUs with more memory than that. Node locked means that the license key is tied to a machine. I think it's based on MAC address.
  14. Re OMAP4_GPIO_CLEARDATAOUT 0x0190 and #define OMAP4_GPIO_SETDATAOUT: This looks like the bit-banding mechanisms in the Cortex-M family. It avoids read/modify/write if you want to just set or clear a single bit. Edit: Actually not bit banding. But separate GPIO registers for SET and CLEAR. Still the same concept: Change a subset of bits without going through the read, logical operation, write cycle.
  15. I don't have a BeagleBone, but found these two articles from Ken Shirriff very insightful. The BeagleBone's I/O pins: inside the software stack that makes them work http://www.righto.com/2016/08/the-beaglebones-io-pins-inside-software.html PRU tips: Understanding the BeagleBone's built-in microcontrollers http://www.righto.com/2016/08/pru-tips-understanding-beaglebones.html Like all his articles, these are long and VERY detailed. Solidly in the "all you ever wanted to know about.." category. I suspect (hope) there are more BeagleBone articles coming.
  16. The PCD8544.h just contains a few constants. There's no "LCD Driver". All code is in the main.c. There's intensive use of C macros to hide the interaction with GPIO in convenient "commands". For example #define LCD5110_SET_COMMAND P1OUT &= ~LCD5110_DC_PIN allows you to use LCD5110_SET_COMMAND like a C command LCD5110_SET_COMMAND; but will be translated behind the scenes by the compiler to the C line P1OUT &= ~LCD5110_DC_PIN; As with all programming, try to read and understand RobG's example code, and experiment with it, before blindly copying it into your own project.
  17. Re using the LCD Library, you probably best start with RobG's thread: http://forum.43oh.com/topic/1312-nokia-5110-display/ From the looks, he didn't put the "library" into a separate source file but simply implemented it in the main program file. The PCD8544.h file just contains a few constants and the fonts. If this would be my project, I'd copy the function declarations up to and including initLCD into a seperate .h file (e.g. LCDLibrary.h), and then the function implementation (after main, starting at void writeStringToLCD) into a separate .c file (e.g. LCDLibrary.c). Then include
  18. Mmmhh, I like MSP430 sandwich for Sunday morning breakfast :-9 Is that big white thing a motion sensor?
  19. @L.R.A No warranties that they are the same inside though..
  20. I've never had issues with a similarly looking power bank. Haven't tried it in real low power scenarios, but it was happy to feed my AIS receiver at 17mA all day long.
  21. I seem to remember that the stop condition needs to be indicated to the I2C peripheral before the last byte is received.. You may want to check out the I2C code in Energia.
  22. I think we're currently in the AOL and CompuServe stage of IoT. Here's hope that there's an equivalent of Tim Berners-Lee out there who will invent an open and simple but good-enough way to integrate all these devices. There will always be the Facebooks and Apples that try to capture their users in a closed system, but eventually the system that gives customers the right balance of simplicity and interoperability will dominate. Think HTML and REST over HTTP vs. Corba, J2EE, SOAP and many other dead sophisticated technologies that were supposed to take over the computer-to-computer communic
  23. PS2: It actually only happens when accessing a page the first time via Google. When I go to energia.nu, browse to the page in question and then repeat the search experiment, I end up on the proper page. Probably needs some HTTP level debugging to figure out what is going on.
  24. @@energia I can reproduce the following on an iPad that never saw the hacked page: - go to Google, search energia project - Google shows a result energia.nu > project - when clicking on the result, a 404 error page will show, indicating that Google was sending me to wordpress/[fwordfwordfword]-macroscopic.php Looks like Google needs a nudge to completely reindex the site. PS: the same happens when searching for energia msp430, energia pinout, energia download, etc. etc.
×
×
  • Create New...