Jump to content
43oh

V0JT4

Members
  • Content Count

    32
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by V0JT4

  1. Very nice project. I'm just wondering if you considered single sensor solution for temp,humid,pressure with BME280?
  2. Great, $21 for shipping to CZE and prices for individual MCUs are not much better. I can get MSP430G2253 TSSOP28 from Farnell for half the price with much cheaper shipping.
  3. Code and Eagle files were attached to 1st post with some minor text updates.
  4. Hello, I needed a large 3 digit display with remote control. All available didn't fit my needs, were quite expensive or not flexible enough. So I decided to create my own inspired by products I found. IR remote control looked simple and cheap enough, Seeedstudio sells some nice large 7 segment LED displays and prototype PCB manufacture in China doesn't cost much. First I LaunchPad prototyped the design with 8 channel serial LED driver, like SCT2168, and generic 3 pin IR receiver. I implemented NEC IR protocol with TimerA and bit banged serial display data output. All worked nicely
  5. All you need is to change I2C device ID before you talk to it. i2c_init(0x50); do stuff with EEPROM i2c_init(0x68); do stuff with RTC Or maybe there is function in your I2C.c just for that instead of full init.
  6. I have all the data stored at http://sunny.ok.cvut.cz/~vojta/hdo/cd/ src-test contains the code for Logger. If you want to use it with unmodified FMX-100, you need a diode from 5.6V pin to LaunchPad USB Vcc and one NPN transistor for level shifting from HDO data pin to P1.3. And don't forget to connect ground. Simply connection would be as on picture for LoggerV1. It may be better to add RC filter on transistor input to suppress glitches. Or you can use optocoupler level shifting schema shown in 2nd post.
  7. Another device with MSP430 on EEVblog, Atten PPS3205T-3S Triple Output Power Supply uses MSP430F2013 (29:45).
  8. There is also news on E2E forum about new devices support by MSP-GANG programmer. Listed also on http://www.ti.com/gang430
  9. Is it possible to expand the solution to 8 channels? The latch is already 8 channel and there are free pins available on MCU. Is there some software limitation? From layout point of view I would be willing to go for SOIC and no crystal on LaunchPad in exchange of 8 channel solution.
  10. I'm not sure how functional it may be without interrupts as its written to depend on them and as is described in MSP430 2xxx User's Guide. You would need to check some ready/busy flags of USCI_B module. However if you get to tx function you can verify functionality: Run upto tx count=0 Reset Run to rx count=0 and examine the memory in debug mode rxdata buffer should contain same data as txdata You can also test Anderson's code for I2C USCI, it is for 16bit addressing.
  11. First thing that pops my mind is to set 16bit addressing bit because your EEPROM chip uses it. replace i2c_rx(11, 0xA0, rxdata, 0, 0); with i2c_rx(11, 0xA0, rxdata, 1, 0); In test example I was using small EEPROM that uses only 8bit addressing, STMicro 24C16. I think all devices up to 256B and some up to 2KB (from outside they behave like 8 I2C devices in one pack) use it. In final design I used 64KB chip that requires 16bit addressing. You may also check if WP, A0, A1 and A2 are connected to GND. Another option is to place break point into I2C status interrupt that is hit when sla
  12. Have you just downloaded and compiled the example code or have you done any modification? The interrupt service routine must contain the if clause to correctly wake up processor after I2C transaction is done or you have to use different approach not to overlap 2 transactions.
  13. Recently I use assembled modules with SiLabs CP2102 for under 3$. So far I didn't have any problem with them on Windows or Linux. If you need only chip it's possible to get 10pcs under 20$ on ebay. I think cheapest chip is PL2303, it's like half the price, but it requires external crystal. I got some RS-232<->USB cords with PL2303 and it didn't turn out to be the best solution. Maybe it wasn't caused by the chip itself but it's implementation.
  14. Check this out: viewtopic.php?p=16864
  15. This week I got PCBs from my tutor and had time to populate and do some test. Boards were produced by local company so the price was quite high. I'm glad there are also services like Seed.
  16. V0JT4

    I2C USCI_B0 Slave?

    You're welcome! I've been playing with master side lately. You can find my code for I2C EEPROM like devices in my project thread. It supports write and read with repeated start, 8 or 16 bit EEPROM data address.
  17. You can find my code for I2C EEPROM like devices in my project thread. It supports write and read with repeated start, 8 or 16 bit EEPROM data address. Thanks Anderson for inspiration.
  18. I'm using I2C in my project with USCI. Here is code for write and read with repeated start, 8 or 16 bit EEPROM data address is possible. It was inspired by Anderson's code. May be useful for someone else. i2c.h #ifndef I2C_H_ #define I2C_H_ typedef unsigned char u8; typedef signed char s8; typedef unsigned int u16; typedef signed int s16; typedef struct { u8 count; u8 state; u16 address; u8 *buffer; } i2c_data_t; #define size_tr(size, addr16) ((size-1)<<1)|(addr16 & 0x01) // number of bytes to transfer(1 to 128, 2+ for RX), device ID, buffer pointer, is 16bit
  19. V0JT4

    I2C USCI_B0 Slave?

    Check out USCI I2C documentation, you have to shift device ID >>1, it takes only 7 low bits unlike what you see on the bus. That's the reason why your slave doesn't send ACK.
  20. I have it assigned as a final project for my master degree. My tutor offered me couple projects and I picked this one. Before that I also didn't know this technology existed. It isn't used in my home city but it covers most of the Czech Republic. My tutor wishes to monitor the messages with simple in-device filtering and have few output relays programmable to certain addresses and behavior. It may also be used for some lab exercise like on Department of Electrical Power Engineering.
  21. So far I have built two versions of simple message logger based on LaunchPad, first uses almost unmodified FMX-100 and the next one dropped top board and required some wire cutting on bottom board. I needed to use capacitor to smoothen the signal, 10uF with 2kOhm resistor to LED and opto coupler works just fine. So far I have around 100 hours recorded. Now it's time to concentrate on software part. Old receiver ZPA FMX-100: Inside: Message format, time is in secconds: Message recorded on scope: Logger V1: Logger V2: Receiver schema V0.8: Receiver board V0.8: Log sam
  22. The goal of my project is to build ripple control receiver with some additional functions, main request was to receive massages and sent them via UART but current plan includes many more functions: - receive and decode messages - 4 relays triggered by certain message content - message logging to EEPROM with date and time from RTC - configuration will be stored on RTC DS1338 user memory - simple CLI via UART - 4 buttons and 20x4 character LCD interface - listing recorded messages with filtering Ripple control messages are transmitted to electricity distribution network, usually at 11
  23. Thanks to everyone who participated, to bluehash for organizing this POTM contest and to TI for LaunchPad and G2553 samples. I wouldn't finish my project in such short time without you.
  24. I'm glad you like it. Main limitation for big digits shape is 8 custom character space. With more space it would be possible to make them nicer. Other possibility is to redefine custom characters on the go, but it would take much more flash and time. Main reason for big digits was to reasonably use most of the display space. I'm aware many people may prefer standard characters. It was another reason apart from code size I made it optional.
  25. Good news everyone! I have a new code version (see first post), now with possibility to enable big digits or 4 lanes. Without big digits it fits in 2K FLASH devices supplied with LaunchPad in both 2 and 4 lanes modes. In 4 lanes mode buzzer needs to be placed on P2.6 (XIN).
×
×
  • Create New...