Jump to content


  • Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Xtagon reacted to rbasoalto in Quadcopter on the cheap!   
    OK, a long time has gone by... I finally made the choice and got the motors, ESC, propellers, and a frame from DX.com.
    I know there are better places to get these parts, but DX.com had a good price and variety. For around 100 USD I got everything I need to make a "stable flight" prototype. The only things missing are batteries and radio.
    A friend of mine crashed his R/C airplane and gladly donated the radio for this project. And batteries... let me first get this thing off the ground tethered, and just then I can think about batteries.
    On the software side, I'm partnering with a friend with lots of experience in MSP430 (although not so much in control systems), but I think we can learn something from ArduCopter code, or similar projects, and port them to the Stellaris. 32-bit architecture at 80 MHz and hardware floating-point unit might come very handy here.
    The first steps will be getting the Stellaris working nice with Mac/Linux and hopefully with gcc.
    Then we're going to focus on modules: reading the sensors, controlling the motors, reading the radio commands, and debug output (maybe stream debug messages through CC1100 radios, or spit them through UART with a HC05-like bluetooth module).
    Then comes the hard part of putting inertia and motors together with the control system.
    Finally, getting the quad to obey radio commands.
    We're also thinking on integrating gps waypointing capabilities for semi-autonomous navigation. This will probably not be of too much use, since we're not expecting battery life to exceed 10~20 minutes. We'll have to measure the system power requirements and find a suitable battery pack to fit our power/weight needs.
    PS: for those of you who are curious about the parts used, here's the list:
    A2212-6 2200KV Brushless Motor Set - Golden http://dx.com/p/41211
    Mystery Speed Controller Pentium-30A for Brushless Motors (300/450 R/C Helicopters) http://dx.com/p/34338
    4-Axis HJ450 Multi Flame Wheel Flame Strong Smooth KK MK MWC Quadcopter Kit - Red + Black http://dx.com/p/124486
    10 x 4.5 1045 Rotating Shaft Propellers for Multi Copter - Black (2-Pair) http://dx.com/p/123222
  2. Like
    Xtagon reacted to pimmel in GCC and Cygwin   
    I didn't see any posts on whether or not cygwin was a usable environment. I figured I would give it the college effort and see if I could build up a toolchain that allows me to compile and flash from within my editor of choice (Vim). The basic groundwork is laid out, and I have to say that I really didn't have to do any original work as it was basically all adapted from linux tutorials. If anyone is interested, I wrote up my experience at http://underwaterwhistler.blogspot.com/2013/01/getting-started-with-stellaris-launchpad.html
  3. Like
    Xtagon reacted to Rei Vilo in I2C channels in Stellaris   
    Use `setModule()` as described in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L599
    void setup() { Wire.setModule(3); Wire.begin(); ... } Similar logic applies for UART and SPI.
    As an alternative, declare the variable as in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L161
    TwoWire Wire2(2);
  4. Like
    Xtagon reacted to Bernard in Reading LM4F120 internal temp sensor   
    Here is a ino file that allow to display temperature  from LM4F120 internal sensor.
    It is based on example from TI workbook , ported a la mode Energia.
    Nothing spectacular. I am slowly learning ARM and I wanted to share.
    /* Read internal temperature sensor of LM4F120 Stellaris Launchpad Example from TI LM4F120 workbook A la mode Energia */ #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/debug.h" #include "driverlib/sysctl.h" #include "driverlib/adc.h" #include "Energia.h" unsigned long ulADC0Value[4]; volatile unsigned long ulTempAvg; volatile unsigned long ulTempValueC; volatile unsigned long ulTempValueF; void setup() { Serial.begin(9600); SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); SysCtlADCSpeedSet(SYSCTL_ADCSPEED_125KSPS); // 250 ADCSequenceDisable(ADC0_BASE, 1); ADCSequenceConfigure(ADC0_BASE, 1, ADC_TRIGGER_PROCESSOR, 0); ADCSequenceStepConfigure(ADC0_BASE, 1, 0, ADC_CTL_TS); ADCSequenceStepConfigure(ADC0_BASE, 1, 1, ADC_CTL_TS); ADCSequenceStepConfigure(ADC0_BASE, 1, 2, ADC_CTL_TS); ADCSequenceStepConfigure(ADC0_BASE, 1, 3, ADC_CTL_TS | ADC_CTL_IE | ADC_CTL_END); ADCSequenceEnable(ADC0_BASE, 1); } void loop() { ADCIntClear(ADC0_BASE, 1); ADCProcessorTrigger(ADC0_BASE, 1); while(!ADCIntStatus(ADC0_BASE, 1, false)) { } ADCSequenceDataGet(ADC0_BASE, 1, ulADC0Value); ulTempAvg = (ulADC0Value[0] + ulADC0Value[1] + ulADC0Value[2] + ulADC0Value[3] + 2)/4; ulTempValueC = (1475 - ((2475 * ulTempAvg)) / 4096)/10; ulTempValueF = ((ulTempValueC * 9) + 160) / 5; Serial.println(ulTempValueC); delay(300); } Salutations.
  5. Like
    Xtagon reacted to Rei Vilo in Energia Latest Releases   
    Energia –as all the other variants as Arduino, chipKIT Mpide, Wiring, MapleIDE, Teensy, .... – is based on Processing, a minimalistic IDE.
    Unfortunately, this Processing IDE doesn't include any debugging tool.
    So we'll need to add that feature. I opened a ticket with this idea at https://github.com/energia/Energia/issues/152
  6. Like
    Xtagon reacted to Rei Vilo in Energia Latest Releases   
    Please find the latest releases of Energia:
    energia-0101E0009-macosx.dmg - Mac OS X: Binary release version 0101E0009 (12/06/2012)  energia-0101E0009-windows.zip - Windows: Binary release version 0101E0009 (12/06/2012)  energia-0101E0009-linux.tgz - Linux: Binary release version 0101E0009 (12/06/2012)·   
    Other links of interest:
    http://github.com/energia/Energia/wiki'>http://github.com/energia/Energia/wiki – Wiki http://github.com/energia/Energia/downloads'>http://github.com/en...ergia/downloads – Downloads http://github.com/energia/Energia'>http://github.com/energia/Energia – GitHub repository https://github.com/energia/Energia/wiki/Hardware'>https://github.com/e...a/wiki/Hardware – Pins maps http://energia.nu – Website
  7. Like
    Xtagon reacted to energia in New Energia release 0101E0009 - 12/06/2012 with Stellaris support   
    After 4 months (to the day) of hard work by the Energia team, Energia release 0101E0009 - 12/06/2012 it is ready to go! A full list of new features and bug fixes will be posted on the github wiki page later this week.
    Highlights for this release are:
    - StellarPad aka EK-LM4F120XL support (http://www.ti.com/tool/EK-LM4F120XL).
    - FraunchPad aka MSP-EXP430FR5739 FRAM support (http://www.ti.com/tool/MSP-EXP430FR5739).
    - Lots of bug fixes.
    The release is available for download @ http://energia.nu/download/
    Pin mapping for the new boards is posted here: https://github.com/energia/Energia/wiki/Hardware courtesy of @rei-vilo.
    Thanks to all Energia users for your continued support and providing us with invaluable feedback!
    Thanks to Energia team members @StefanS, @ReaganR, @rei-vilo, @Rickta59, @pbrier, @clyvb for making this release possible.
    Special thanks to @bluehash for his continued support with 43oh.com.
    Enjoy the new release!
  8. Like
    Xtagon reacted to Rei Vilo in SOLVED! DHT22 Temp & RH% One-Wire Sensor on Energia   
    ...and a picture!

    The DHT22 sensor is at the bottom-right part of the proto-board. The LCD is a Nokia 5110 compatible. Temperature and humidity are displayed with a double-sized font.
  9. Like
    Xtagon reacted to bluehash in Energia for Stellaris   
    Hi Energia members,
    In the last Energia update, we had exciting news that the Stellaris LP is also supported. However, this brings us to an interesting problem   - How do we handle questions for the Stellaris Launchpad?
    These are my suggestions:
    1. Split the Energia sub-forums here to MSP430 and Stellaris. I can add a redirect from Stellarisiti to here, so that all Energia related talk is in one place.
    2. Add another Energia sub-forum at Stellarisiti.
  10. Like
    Xtagon reacted to dellwoodbu in PWM on Stellaris Launchpad   
    Check the LM4F120H5QR Datasheet. The "general purpose" timers have a output mode that can generate simple variable duty cycle square waves (aka PWM). This chip just doesn't have what Stellaris calls motion control PWM which is dead bands, faults and QEI in hardware.
    It has a TON of timers. 6 x 32 bit times and 6 x 64 bit timers. Each of those 12 can run in a half wide mode.
    Pretty sure some creative folks will find a way to make that drive some motors.
  11. Like
    Xtagon reacted to hnaoab in [ ENDED ] Jan-Feb 2013 - Stellarisiti Project of the Month Contest   
    I want to Join this Contest, my project's name is Minni Lab:
                Mini Lab project aims to provide students with cheap multi-function tool for their learning and even further studying in Electronics. Mini Lab’s center is  Stellaris LM3S3749, a MCU of  Texas Instrument company, and it’s also equipped with touchscreen which will make the user interface becomes more visual and easy to use. Especially, Mini Lab’s hardware is designed to be able to upgrade easily, still have necessary features but keep low price.

    http://www.mediafire.com/?2ls2hcyhgb87b34 (Use Keil C)
    http://www.mediafire.com/?0xm4gz216cdctjp (Use Eagle layout)
    More Infomation: http://www.mediafire.com/view/?08djf38vt71f4v4 (Use Power Point 2010)
    Main topic:http://www.diendanti.com/showthread.php?469-Chia-s%E1%BA%BB-d%E1%BB%B1-%C3%A1n-Mini-Lab (the Language is Vietnamese)
  12. Like
    Xtagon reacted to dellwoodbu in Quadrature Encoder Interface on Launchpad?   
    Haven't tried this on the LM4F120 but you should be able to do a software QEI using GPIO interrupts or perhaps the timer capture pins.  
    Reading the state of one pin when the other pin transitions will tell you direction.  For example if pin 1 is high when pin 2 goes from high to low, that means either forward or reverse.  If pin 1 were low during the same pin 2 transition that is the opposite direction.  Time difference between edges on either pin should give you velocity. Integrating that to get position usually involves a third pin as an index to help re-zero the position count approximately once per revolution.
    Again, haven't done this lately but here is where i would start.
    Setup and enable a GPIO interrupt routine for the rising edges of the phase B pin.  START ISR 1 if( read(phase A pin) == high )position++ direction = forward velocity = some simple math based on ticks/revolution, time between now and last tick and perhaps size of the wheel. Using a TImer capture here helps get the best resolution on this. elseposition-- direction = reverse velocity = same math as before * (-1). end ISR 1  
    I would also setup a second ISR for the index pin if it existed and inside manually zero the position counter.  Make position variable a volatile as a minimum safe gaurd against race conditions.
  13. Like
    Xtagon reacted to SugarAddict in Places we buy things...   
    I'll update this post with responses... we had one of these at 43oh, figured I'd start another here as we probably have some new folks
    If you don't know of TI's estore... I want to know why/how you got to this thread,
  14. Like
    Xtagon reacted to xpg in ENC28J60 Booster Pack   

    After a couple of hours of work porting the enc26j80 driver from my own mini ipv6 stack to uip, I have my enc28j60 booster pack working with the Stellaris Launchpad.

    The current example code is at https://github.com/xpgdk/stellaris-enc28j60-booster and does nothing more than acquiring an IPv4 address and serve a static web-page on port 80. The code is tested using GCC only.

    (I apologize for the quality of the video)

    I will be improving the driver and the example code in the coming weeks. 
    Schematics for revision 2:


    Updated April 9th 2013: Added schematics and board-design of rev 2 board.
  15. Like
    Xtagon reacted to bluehash in Quadcopter on the cheap!   
    Very interested! I flew mine on a maiden yesterday. I'm using CC3D as a controller which is based of an STM32. I can give you alot more information if you want. Very eager to see your progress.
    Also, Stellarisiti has Blogging support, so you can continue a build log in this thread and also write to your blog about any milestones.
    This is mine:

  • Create New...