Jump to content
43oh

reaper7

Members
  • Content Count

    174
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Like
    reaper7 reacted to ILAMtitan in [Energia Library] WS2811Driver LED Controller Class   
    Hey guys, I haven't been around much lately, but a recent project brought me back here and using this WS2811 library.
     
    I'm trying to enable more people to use the LaunchPad in some of my volunteer work (FIRST robotics) and flashing LEDs is a good eye catching way to do it.  To help facilitate people who are already using Arduino and the venerable AdaFruit NeoPixels, I ported over almost all of her functionality to work in Energia.
     
    https://github.com/ILAMtitan/WS2811Driver
     
    With this, any project using the NeoPixel library will be near 100% compatible.  I also took some time and worked out support for 25MHz on the 5529 LP (although it's a bit crude).  My assembly knowledge is also only enough to get me so far.  I haven't been able to work out the best way to enable PORT2 to be used since it's a #def in the assembly.  If any of you guys can help work that out, it would be awesome.  I know y'all are also really good at finding problems with code, so feel free to do some QA for me
     
    I've tested the timings up to 120 LEDs at 25MHz, but it might fail beyond that (I only had two strips to play with).
     

     
     
    And here's a little preview of the first project I'm working on with it:
     

  2. Like
    reaper7 got a reaction from sq7bti in [Energia Library] Nokia 5110 LCD BoosterPack/Breakout PCB   
    about 2:
    I think that the lines:
    CS_LOW and CS_HIGH are not needed
    when you replace SPI.transfer((char)c);
    by another call: SPI.transfer(_pinChipSelect, (char)c);
    which execute SPIClass::transfer(uint8_t ssPin, uint8_t data) -> SPIClass::transfer(uint8_t ssPin, uint8_t data, uint8_t transferMode)
    where lines:
    169 sets CS 5110 to LOW and
    176 sets CS 5110 back to HIGH
  3. Like
    reaper7 reacted to Rei Vilo in CC3200 LaunchPad Pins Map   
    Please find the pins map of the CC3200 LaunchPad.
     
    Edit Sept. 08, 2014

  4. Like
    reaper7 reacted to energia in New Energia release 0101E0013 - 09/05/2014   
    I am happy to announce that release 0101E0013 just went up on http://energia.nu. This release adds support for the awesome CC3200 WiFi LaunchPad and CC3100 BoosterPack for MSP430 and TivaC.
     
    I want to thank everybody for their support and contributions. Energia would not have been possible without such an awesome community!
     
    Details of the release can be found on http://energia.nu
  5. Like
    reaper7 reacted to alikian in Arduino Adapter Booster Pack for LaunchPad XL   
    Hi All,
     
    This my first prototype for Booster Pack that connect LaunchPad XL to Arduino Shields
    It convert 3.3V to 5 Bidirectionaly, I just test it with my own Arduino Shield with SPI works fine.
    I know board is too long and jumpers are not necessary, I will removed them.
     
    It will help Arduino Shields as BoosterPack.
     
    Thanks,
    Ali


  6. Like
    reaper7 reacted to RobG in EduKit BoosterPack   
    Quick demo.
    ADC measures the pot, Timer controls LED's brightness, SPI sends PWM value to shift register.
     

     
     
    Port connections

  7. Like
    reaper7 reacted to sq7bti in Newtonian/Dobsonian telescope controller   
    Progress:

    A summary of changes:
    instead of unipolar motor drivers, now I used a bipolar drivers very popular in RepRap projects, here A4988 (or DRV8825) 28byj-48 modified for bipolar cheap HC-05 for bluetooth SPP GPS module U-blox NEO-6m added RTC DS1307 to provide date/time reference even in the first seconds after power-on and 56 of NVRAM bytes added (optional) humidity and temperature sensor DSTH01 added a I2C socket to connect external temperature sensors to provide information about motors temperatures added PCF8574 for microstepping configuration of A4988 drivers added buzzer for audible indication added output for 12Vdc fan of main mirror - PWM controlled Nokia 5110 display replaced with a red back-light
     
    As the software is concerned, there were several improvements as well. The most important is that the motors are now driven by an interrupt driven AccelStepper
     

     
    With kind regards,
    Szymon
  8. Like
    reaper7 reacted to JeysonZG1426460013 in [Energia Library] Ping4Pins: For 4-pins and 3-pins PING sensor   
    - INTRODUCTION
     
    Hi everybody, I want to share a library for controlling a 4-pins PING sensor (HC-SR04 ICStation) basically, although you can also control the 3-pins PING))) sensor conventional of Parallax (URL). 
     
    This library is a modification of the Caleb Zulawski's library for PING))) sensors. I made basic improvements in calculations, I added a function to calculate the distance in millimeters and added the option to change the "input trigger signal" [10uS for HC-SR04 and 5uS for PING)))]
     
     
    - CHANGE LOG
     
    v2.1 (26/08/2014)
     
    * Fixed calculations of distance in inches.
     
    v2.0 (25/08/2014)
     
    * Fixed problems with measurements adjustments.
    * New function for modification of a single unit.

     v1.0 (24/08/2014)
     
    * Basic modification of Caleb Zulawski's library.
    * Added the calculation of distace in millimeters.
    * Identified problems with measurements adjustments.
     
    - TESTING
     
    Tested on: Tiva C (TM4C123GXL) & Arduino UNO R3
     
    - COMPARISON SECTION
     
    A small comparison between the 2 sensors is: 
     
    * HC-SR04 sensor: 
     
    1. Working Voltage: 5V (DC) 
    2. Output signal: Electric frequency signal, high level 5V, 0V low level. 
    3. Sensor angle: Not more than 15 degrees. 
    4. Detection distance: 2cm-450cm. 
    5. High precision: Up to 0.3cm 
    6. Input trigger signal: TTL impulse 10uS 
    7. Mode of connection: 
       1. VCC 
       2. TRIG ( T ) 
       3. ECHO ( R ) 
       4. GND 
     
    * PING))) sensor: 
     
    1. Working Voltage: 5V (DC) 
    2. Output signal: Electric frequency signal, high level 5V, 0V low level. 
    3. Sensor angle: Not more than 15 degrees. 
    4. Detection distance: 2cm-300cm. 
    5. High precision: Up to 0.3cm 
    6. Input trigger signal: TTL impulse 5us 
    7. Mode of connection: 
       1. GND 
       2. VCC 
       3. SG
     

    - DOWNLOAD SECTION
     
    v2.1: Ping4Pins v2.1.zip
     
    v2.0 (Not recommended): Ping4Pins v2.0.zip
     
    v1.0 (Not recommended): Ping4Pins v1.0.zip
     
    - INSTRUCTIONS OF INSTALLATION
     
    1. Download the latest version of the library
    2. Unzip the zip-folder. 
    3. Copy the "Ping4Pins" folder in the location of the libraries depending of your trainer:
      * For Arduino: <Arduino IDE directory>\hardware\libraries\
      * For Tiva C: <Energia IDE directory>\hardware\lm4f\libraries\
     
    Note: If you used an older version of the library, I recommend deleting the folder and copy the new folder "Ping4Pins".
     
    - EXAMPLES SECTION
     
    In the "examples" folder are 5 examples for Arduino and 5 examples for Tiva. I'll post the example # 1:
     
    /* Example # 1 for TivaC / Arduino Created by Jeyson Zuñiga Gomez (https://fb.me/jeysonzg) E-mail: ingjeysonzg@hotmail.com English: In this example, we will use the basic form of the Ping4Pins library. Español: En este ejemplo, vamos a utilizar la forma básica de la libreria Ping4Pins */ // English: We include the library that we will use, in this case Ping4Pins // Español: Incluimos la librería que vamos a usar, en este caso Ping4Pins #include <Ping4Pins.h> // English: Define Trigger and Echo pins // Español: Definimos los pines "Trigger" y "Echo" #define TriggerPin PF_4 #define EchoPin PD_7 // English: For Arduino use: // Español: Para Arduino usa: #define TriggerPin 8 #define EchoPin 7 // English: Create the ping variable with the builder Ping4Pins class and call the function Ping4Pins // Function: Ping4Pins(int Pin_Trigger, int Pin_Echo) // Español: Creamos la variable ping con el constructor de la clase Ping4Pins y llamamos a la funcion Ping4Pins // Funcion: Ping4Pins(int Pin_Trigger, int Pin_Echo) Ping4Pins ping = Ping4Pins(TriggerPin, EchoPin); void setup(){ // English: We start the serial monitor at a speed of 9600 baud // Español: Iniciamos el monitor serial a una velocidad de 9600 baudios Serial.begin(9600); } void loop(){ // English: We call the function "play", without parameters, of our Ping4Pins class. // Here the input trigger signal is 10us default. // Español: Llamamos a la funcion "play", sin parametros, de nuestra clase Ping4Pins. // Aqui la señal de entrada del disparo es de 10us por defecto. ping.play(); // English: We show in the IDE serial monitor the measurement in // microseconds, inches, centimeters and millimeters, respectively. // Español: Mostramos en el monitor serial del IDE la medicion en // microsegundos, pulgadas, centimetros y milimetros, respectivamente. Serial.print("Microseconds: "); Serial.print(ping.microseconds()); Serial.println(" uS"); Serial.print("Inches: "); Serial.print(ping.inches()); Serial.println(" in"); Serial.print("Centimeters: "); Serial.print(ping.centimeters()); Serial.println(" cms"); Serial.print("Milimeters: "); Serial.print(ping.milimeters()); Serial.println(" mm"); Serial.println(); delay(500); } - IMAGES SECTION
     
    Image 1.
     

       
    Image 2.
     

     
    Image 3.
     

     
    Image 4. 
     

     
     
     
    NOTE 1: In Tiva we use digital pin PF_4 for TRIGGER and digital pin PD_7 for ECHO. 
            In Arduino we use the digital pin # 8 for TRIGGER y digital pin # 7 for ECHO.
     
    NOTE 2: For use 3-pins PING))) Sensor with this library, declare TRIGGER and ECHO as same PIN DIGITAL.
     
    NOTE 3: Please excuse my English, I'm Colombian and my English is not very good  
  9. Like
    reaper7 got a reaction from xxx1 in New Chip Alert: The ESP8266 WiFi Module (It's $5)   
    I wrote to manufacturer of the ESP8266 IC request to release more detailed documentation.
  10. Like
    reaper7 got a reaction from bluehash in New Chip Alert: The ESP8266 WiFi Module (It's $5)   
    I wrote to manufacturer of the ESP8266 IC request to release more detailed documentation.
  11. Like
    reaper7 reacted to JeysonZG in [Energia Library] Ping4Pins: For 4-pins and 3-pins PING sensor   
    - INTRODUCTION
     
    Hi everybody, I want to share a library for controlling a 4-pins PING sensor (HC-SR04 ICStation) basically, although you can also control the 3-pins PING))) sensor conventional of Parallax (URL). 
     
    This library is a modification of the Caleb Zulawski's library for PING))) sensors. I made basic improvements in calculations, I added a function to calculate the distance in millimeters and added the option to change the "input trigger signal" [10uS for HC-SR04 and 5uS for PING)))]
     
     
    - CHANGE LOG
     
    v2.1 (26/08/2014)
     
    * Fixed calculations of distance in inches.
     
    v2.0 (25/08/2014)
     
    * Fixed problems with measurements adjustments.
    * New function for modification of a single unit.

     v1.0 (24/08/2014)
     
    * Basic modification of Caleb Zulawski's library.
    * Added the calculation of distace in millimeters.
    * Identified problems with measurements adjustments.
     
    - TESTING
     
    Tested on: Tiva C (TM4C123GXL) & Arduino UNO R3
     
    - COMPARISON SECTION
     
    A small comparison between the 2 sensors is: 
     
    * HC-SR04 sensor: 
     
    1. Working Voltage: 5V (DC) 
    2. Output signal: Electric frequency signal, high level 5V, 0V low level. 
    3. Sensor angle: Not more than 15 degrees. 
    4. Detection distance: 2cm-450cm. 
    5. High precision: Up to 0.3cm 
    6. Input trigger signal: TTL impulse 10uS 
    7. Mode of connection: 
       1. VCC 
       2. TRIG ( T ) 
       3. ECHO ( R ) 
       4. GND 
     
    * PING))) sensor: 
     
    1. Working Voltage: 5V (DC) 
    2. Output signal: Electric frequency signal, high level 5V, 0V low level. 
    3. Sensor angle: Not more than 15 degrees. 
    4. Detection distance: 2cm-300cm. 
    5. High precision: Up to 0.3cm 
    6. Input trigger signal: TTL impulse 5us 
    7. Mode of connection: 
       1. GND 
       2. VCC 
       3. SG
     

    - DOWNLOAD SECTION
     
    v2.1: Ping4Pins v2.1.zip
     
    v2.0 (Not recommended): Ping4Pins v2.0.zip
     
    v1.0 (Not recommended): Ping4Pins v1.0.zip
     
    - INSTRUCTIONS OF INSTALLATION
     
    1. Download the latest version of the library
    2. Unzip the zip-folder. 
    3. Copy the "Ping4Pins" folder in the location of the libraries depending of your trainer:
      * For Arduino: <Arduino IDE directory>\hardware\libraries\
      * For Tiva C: <Energia IDE directory>\hardware\lm4f\libraries\
     
    Note: If you used an older version of the library, I recommend deleting the folder and copy the new folder "Ping4Pins".
     
    - EXAMPLES SECTION
     
    In the "examples" folder are 5 examples for Arduino and 5 examples for Tiva. I'll post the example # 1:
     
    /*Example # 1 for TivaC / ArduinoCreated by Jeyson Zu



  12. Like
    reaper7 reacted to petertux in MSP430 tracker   
    here's my latest project, a fully open-source msp430f5510-based gps/gprs tracker. it's a device that wakes up every few minutes and does the following:

     - tries to get a gps fix
     - connects to the gsm network, marks the tower cell ids it talks to
     - executes sms commands received - if any
     - starts a gprs connection and sends all the info it has collected via http to my server

    it does all this only based on interrupts (zero blocking functions are used - all the similar projects I've seen are riddled with delay()s).
    functions that fail due to network unavailability are retried a given number of times.

    the data received on the server is placed into a database and gps positions of the cell towers are obtained for future triangulation. this info can be used if there is no gps coverage due to obstacles.
     


    to give a little context, I felt the need of making my own tracker because I bought something like this an year ago and quickly became dissapointed by the dubious quality of the hardware design and software of the product.

    here is the first prototype - the magnet wire was used to debug the hardware flow control-enabled UART of the sim900.



    the first assembled module is ready to be used on my trip to Greece. instead of a small flat LiPo I ended up using 2 cells from a discarded laptop battery - there was no time to wire this to my motorbike. now after ~20 days it is still tracking.



    I am pretty happy with this first revision, but I'm working on the next one that will include a small serial fram chip. I decided to use that as a buffer because of the weird way the mobile phone company is counting the gprs traffic.

    for some more eye-candy, you can see my route from home to Ouranoupoli on a google-map overlay here:
    http://www.simplex.ro/files/trips/test.html
     
    waypoints are 10 minutes apart, the trip took 10 hours and about 800km.

    project home: https://github.com/rodan/tracy
     

     
  13. Like
    reaper7 reacted to cplc430 in C-Programmable Logic Controller with MSP430   
    Hi,
     
    A new project based on MSP430 microcontroller is in process of being finalized.
    This is a PLC that can be programmed in C.
    A preliminary description of it can be found at:
     
    http://scitec.hubpages.com/hub/C-Programmable-Logic-Controller-CPC430
     
    In these days this description will be improved.
    I'll add a bill of materials and a file with C-specific PLC functions.
    The project will be available as a kit from September 15, 2014.
     
    Neculai
    naga@ack.ro
     
     
     
     
     
     
     

  14. Like
    reaper7 reacted to jscrane in Ancient 8-bit computer emulator   
    What I did on my Summer Holidays:
     
    http://programmablehardware.blogspot.ie/2014/08/retrocomputer-resurrection.html
  15. Like
    reaper7 reacted to jon1426459908 in Tiva FatFs driver with DMA   
    https://github.com/jmagnuson/fatfs-tiva-cm4f/blob/master/src/third_party/fatfs/port/mmc-tiva-cm4f.c
     
    It's still a work in progress, but should be a working drop-in replacement for the MMC driver TI provides.  I've only done minimal testing on it thus far, so any corrections or improvements would be greatly appreciated!
  16. Like
    reaper7 reacted to spirilis in Ethernet issue when transmit large data on TM4C1294   
    Pull request #447 issued for the Energia project to merge this change into the master code branch - https://github.com/energia/Energia/pull/447
  17. Like
    reaper7 reacted to bluehash in Tricopter build   
    Awesome! Good for you to make use of parts lying around. I would have done the same.
     
    My first multi was built with two CF rods. That was three years ago.
     
    Now I have this, which took me a year to put together. Love flying it.
     


  18. Like
    reaper7 reacted to username in Tricopter build   
    First ever multi-rotor build. The university had these parts lying around from a failed senior design project. Apparently all they managed to do was buy the parts. Considering the atrocity that it would be to let these parts simply lie around I built up the tricopter. Its not quite finished yet. I need some clockwise props for it & a rear landing gear. Uses a kk2.1.5 and all standard off the shelf hobby king parts.
     

  19. Like
    reaper7 reacted to RobG in Geek Clock BoosterPack   
    Geek Clock's big brother is in town!
     
    The Gear Clock.
     
    72 LEDs, most likely MSP430G2553 + CC2500.
     

     

  20. Like
    reaper7 reacted to RobG in GPS BoosterPack and standalone board   
    EDIT: Now on Tindie
    I have 2 new boards coming soon: GPS BoosterPack and standalone board.
    They will (most likely) come with pre-soldered and tested GPS module, and possibly as a kit.
    Standalone board has a socket and all necessary part to use it with MSP430G2553.
     
    The price of BP is $22, SA board will cost ~$25 (MCU not included.)
     

  21. Like
    reaper7 reacted to energia in New BoosterPacks - CC3100 & CC3200   
    If anybody is up for a beta release of Energia that supports the CC3200 then send me a message (make at energia.nu) with the operating system you are on and I will get you the instructions and access to the beta. I have OS X and Windows right now and will have Linux early next week.
     
    CC3100 BoosterPack support for MSP430 and TivaC LP will be available in a week or so.
     
    Robert
  22. Like
    reaper7 reacted to roadrunner84 in print sensor reading on the LCD sharp memory BoosterPack ?   
    int a =analogRead(A0)/4; text_buffer[0] = '-'; text_buffer[1] = a + '0'; text_buffer[3] = '-'; You are using a trick to map a digit to an ASCII character. This trick works fine for single digit numbers, since they are in order in the ASCII table. If you need to write multiple digits, you will need to split those digits off first, before writing to the string buffer.
    For example, the number 12 would need to be converted into the characters '1' and '2'. This cannot be achieved by simply adding '0' to 12, because '0' is the number 48, 48 + 12 = 60, which is the character '<'.
    Now, to split the number 12 into 2 digits, we use simple division:
    12 / 10 = 1
    12 % 10 = 2
    % is the remainder operator, so the remainder of 12/10 is 2.
    Then, for each digit we can use the + '0' trick to take the correct ASCII character.
    int a =analogRead(A0)/4; text_buffer[0] = '-'; if (a >= 10) { text_buffer[1] = (a/10) + '0'; text_buffer[2] = (a%10) + '0'; } else text_buffer[2] = a + '0'; text_buffer[3] = '-'; Note that this example is very crude and will only work for numbers < 100.
    If you want numbers above 100 to work as well, just continue the division:
    123 / 100 = 1
    (123 % 100) / 10 = 2
    123 % 10 = 3
     
    or alternatively
     
    123 / 100 = 1
    123 - 100 * 1 = 23
    23 / 10 = 2
    23 - 10 * 2 = 3
     
    this sequence can be extended to 1000 and 10000
  23. Like
    reaper7 reacted to username in DAC GUI V2   
    Hey all,
     
    Round 2: This extends the peripherals of the MSP430 to a UART based ascii AT command set. For example, send "AT+GET_ADC" over the USB->Serial bridge to get all the ADC values returned. Since I released my first GUI there have been a couple others like it. You will find that this version's strength is that the underlying C driver set is my personal driver set which is quite powerful XD . I then wrote a C# GUI as a wrapper around this command set.
     
    Features Implemented: Digital IO, Analog I, PWM, SPI

     
    PWM Example:

     
    Steps to use:
    1. Download code & .exe file here: https://github.com/NateZimmer/ICBM
    2. Import C code into CCSV5.1 (haven't tested with other versions) and flash to launchpad.
    3. Ensure UART jumpers on the MSP430 Launchpad are set to Hardware based UART on a msp430g2553 launchpad Rev 1.5
    4. Run GUI and connect to launchpad.
    5. Enjoy!
     
    Skip to 10:35 for setup instructions:
     
     


     
    Todo:
    Implement DCO Calibration for better CLK accuracy
    Implement I2C
    Implement Graphing/Logging
    Implement more flexible spi chip select features
     
    Please let me know if this does not work for you
  24. Like
    reaper7 reacted to yosh in connecting GPS and PC via UART serial comm.   
    So, how do you program the MSP?
     
     
    Short answer: If you do not need to configure something on the GPS module, the GPS-TX should be enough.
     
    Longer answer: I never used the GP-635, but from my expirience with MTK33x9 modules I can tell you, that the module instantly starts sending data (NMEA output) when it gets powered. So you do not need to send a particular command to start the output of these NMEA sentences. But e.g. I need to connect the Launchpad with the RX-Pin of my Module because I send some commands to change the baud rate and update rate - it's quite intuitive for the MTKs. But configuration (or not) depends on your specific setting... If the default values are ok for you, you only need the GPS-TX to get the data into the launchpad. You may check THIS for information on how to configure the module and which commands might be interesting. From what I read around the net (and it's the same on the MTK modules) all changes on the configuration are volatile, so you need to send these configuration commands everytime you start the GPS module (at least when the module had no power supply for a while). But, as told before, maybe the default parameters (baud rate, update rate, type of NMEA sentences, ...) are just fine for you...
  25. Like
    reaper7 reacted to HylianSavior in Robotics Boosterpack   
    Boards have arrived!
     

×
×
  • Create New...