Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Fmilburn

  1. Some of these are available for electronic checkout from the Seattle Public Library and I looked at a couple of them in the past. As you might expect they are introductions and cookbook in nature. The positive side is they are professionally edited and have the information logically presented in one place.
  2. Have you tried getting the Arduino code working in Energia by itself? If not, try to get it working in Energia before combining the two. It does not look like you have done basic "porting" to get it to work in Energia. For example, this: byte sensorInterrupt = 0; // 0 = digital pin 2 The comment says it is supposed to be digital pin 2 but the variable says 0. And there is no pin 0 in Energia. You are also writing to pin 13 and calling it the status LED. Pin 13 is the red LED on an Arduino. In Energia it is RED_LED. The code looks like it should be easy to get it going but you
  3. I agree. Maybe upon issuing a userid there is a notice directing them to a post about netiquette. In addition, many of them don't know how to provide the basic information needed to get a meaningful response to their questions.
  4. If you are using Energia, try this one which I have used with success: http://playground.arduino.cc/Code/PIDLibrary There are some very good links behind it on practical use and the derivation. Also do a search for PID on 43oh for posts on everything from balancing robots to sous-vide. Your implementation will depend on how fast the system you are trying to control reacts and how stable it is.
  5. Your solution is for the G2553. The OP asked about the G2231.
  6. This post covers my experiences with a Sharp IR sensor marked 2YOA2I F 7I I received courtesy of @@bluehash clearing his desk a while back. Sharp IR sensors can be obtained that cover ranges from 4 - 30 cm up to 100 - 550 cm. This one has a listed range of 10 - 80 cm. The coverage envelope / angle was not listed in the data sheet but seemed relatively narrow. Current consumption is around 30 mA on average. Response time is listed as 39 ms. The output from the sensor is an analog voltage which is inversely proportional to the distance in a nonlinear manner. Of particular note to th
  7. It is interesting that you posted this as I recently gave some thought to building one of these. TI has a number of reference articles about them, e.g. http://www.ti.com/tool/TIDA-00311
  8. Per the error message, 'yield' was not declared in this scope If you look in the code.... long HX711::read() { // wait for the chip to become ready while (!is_ready()) { // Will do nothing on Arduino but prevent resets of ESP8266 (Watchdog Issue) yield(); } So it appears that yield() is only needed for the ESP8266. You can try going through and commenting out yield() wherever it occurs.
  9. dAISy Hat for the Raspberry Pi I have been using the new dAISy hat for the Raspberry Pi for a while now with OpenCPN and thought I would make a post. I find it very usable on a RPi 3 (much improved over the RPi 2) and have seen improved reception with the two channel dAISy receiver as well. Below is a screenshot of the most recent version of OpenCPN (4.5.0) running on a Raspberry Pi 3 with the latest Raspbian and
  10. Hi @@NurseBob, I did a search for "MSP430 State Machine" after seeing your post and it turned up a lot more links than I would have guessed. One that I found interesting is this from TI: http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa402a It describes, and contains, an Excel spreadsheet for generating state machine code. I am going to have to try that out....
  11. @@Deep97 It isn't really possible to tell what the problem is from the information you have provided. I am going to assume that you are able to have serial print elsewhere without a problem using Energia. I had a quick peek at the code and it seems reasonably well structured and commented. Now that it compiles you have a couple of choices. There is debug print in the code - try turning that on and see what it tells you. You can insert your own debug print. The Code Composer Studio debugger is very useful for problems like these. There is a learning curve to Code Composer Studio but
  12. I recently became interested in Finite State Machines and ended up writing a tutorial which has been posted on the 43oh blog: http://43oh.com/2017/02/how-to-implement-finite-state-machines-using-energia/ The example uses Energia but adapting it to C / C++ for use with Code Composer Studio or other IDEs would be simple. While conceptually easy, working through the details and applying the concepts in a more structured manner were instructive for me. The tutorial is just an introduction but there are additional references at the bottom. If you are aware of other good resources feel free
  13. I never noticed before, but Arduino has a setClock member for Wire that Energia does not have. Try finding that call and comment it out. The compiler output you attached lists this as an error and gives the location. The rest of it on quick inspection seemed to be warnings.
  14. I have an older model of one of those commercial ultrasonic meters for measuring rooms and such - even it gives spurious results at times - and that is in a room with flat walls and not moving. There are commonly used with slow moving robots by hobbyists and I've seen them used as an aid to park a car at slow speed in a garage and avoid hitting a wall. I don't have any real expertise in this area though and can't make any recommendations....
  15. I find Energia suitable for many most of my projects. Much of the time direct register access is not needed. But if you keep at it long enough and stretch the boundaries of what others have done and posted, then expect to encounter the limitations of Energia / Arduino or at least the need to understand what is happening at the register level. It may be in terms of the software, the libraries, slow execution, lack of access to features, or that your desired microcontroller does not have an Energia port. If you learn to directly access registers then all peripherals and capabilities are avai
  16. Hi @@speed07, The description in the link you provided states that the range is 2 cm to 450 cm which is similar to the inexpensive Chinese models. You should not expect it to work well out to 4 meters. The Chinese models I experimented with in small robots do "work" but have a relatively wide beam pattern that makes it hard to pick out objects and sometimes just giving spurious results. Fun to play with but not reliable safety devices. It will lack the rigorous testing and specifications of an automotive quality device - things like resistance to vibration, temperature, dust and dirt,
  17. Hi @@Pratik, Do a search for Energia CC3200 API on 43oh and you will find discussions of the type things that can be done. Language is C/C++. Also see the Energia documentation and examples.
  18. Hi @@russellrdover and welcome to 43oh. The FR6989 is a really nice LaunchPad. The firmware that comes on the LP demonstrates the temperature sensor and LCD of course and source is provided for Code Composer Studio and IAR: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP-EXP430FR6989/latest/index_FDS.html Energia also has a library for the display and there is discussion here on 43oh on using the internal temperature sensor for the MSP430 family.
  19. Hi @@imagiro1, You can do a search of 43oh for "add new pinmap Energia" , "add new microcontroller Energia", and such and turn up some threads. But it is probably easier and faster to use CCS and the examples that TI includes for the peripherals on all their microcontrollers.
  20. There seems to be a problem with 9600 baud and possibly other baud rates on the MSP432 when using Energia. Try Energia V17 at 115200 baud.
  21. I had a quick look at your code and I suspect there are multiple problems. For example, in main_working_95.c // DCO Speed Divider UCB0BR0 = 3.2; You can't put a floating point number into a register and I don't think this is doing what you want it to. If you are new to registers on microcontrollers I suggest The TI workshop at http://processors.wiki.ti.com/index.php/Category:CCSv6_Training#Workshops_and_Modules I think you can modify the CCS code I posted in the link @@LiviuM referred to and make it work. Here is my quick edit of the code: // Runs on G2553 at 8 MHz // Outp
  22. I have learned not to comment on devices I haven't worked with before but here goes anyway How did you set the clock and are you sure you got that correct? If it is 625 ns then it would appear to be OK with LONG and SHORT as you have described it. Did you post your code? I didn't see it. What code are you using that gives 90-95% correct? The schematic in the datasheet shows a capacitor between Vcc and GND - did you place that in your circuit? Could possibly be something flaky because of that. It is really useful to have a logic analyzer for this type work, unfortunately mine
  23. Try doing a search on this site for Stellaris Launch Pad. Also try a search on the TI site. E.G. http://www.ti.com/tool/sw-ek-lm4f120xl Also, early versions of Energia supported the Stellaris: http://energia.nu/pin-maps/guide_stellarislaunchpad/
  24. @@ZenClide The labels can be confusing. Energia uses a pin numbering system that is consistent on all boards. It starts with 3V3 (number 1) in the upper left, goes down to number 10 at lower left, and then starts up again on the other side at the bottom. See for example the pin map at Energia for the CC3200: http://energia.nu/wordpress/wp-content/uploads/2014/06/LaunchPads-CC3200-%E2%80%94-Pins-Maps-12-28.jpeg The pin map excerpt you have posted shows the same pin numbers right after the /* comments. So, pin 4 in Energia on the CC3200 is the same one that is labelled P03 on the
  • Create New...