hybridfree/eevblog-posts huggingface dataset:
16X2 LCD Problem - Page 1
Forum section: electronics / general

author: Lesterwyatt
author_rank: Regular Contributor
timestamp: March 05, 2015, 05:57:36 pm
content: Code:HelloI have a problem with my 16X2 LCD. I am trying to display a simple string of characters.For the first 2 seconds of the program the display should display 'Voltmeter' then go into a continuous loopdisplaying mV = what ever voltage .My problem is my LCD only displays the first character of the sting..i.e 'V' rather than 'Voltmeter'. and 'm' rather than 'mV'. However i can display the voltage reading just fine.The display looks like this ' m 5000'Rather than ' mV = 5000'I am using Mikroc on a PIC18f45k22. I am uploading the HEX file from MPLAB IDE via PICKIT3.Here is my code:Thanks Lester[codesbit LCD_RS at RB4_bit;sbit LCD_EN at RB5_bit;sbit LCD_D4 at RB0_bit;sbit LCD_D5 at RB1_bit;sbit LCD_D6 at RB2_bit;sbit LCD_D7 at RB3_bit;sbit LCD_RS_Direction at TRISB4_bit;sbit LCD_EN_Direction at TRISB5_bit;sbit LCD_D4_Direction at TRISB0_bit;sbit LCD_D5_Direction at TRISB1_bit;sbit LCD_D6_Direction at TRISB2_bit;sbit LCD_d7_Direction at TRISB3_bit;void main() {unsigned long Vin, mV;unsigned char op;unsigned char i, j, lcd;char *str;ANSELB = 0;ANSELA = 1;TRISB = 0;TRISA = 1;Lcd_Init();Delay_ms(1);Lcd_cmd(_LCD_CLEAR);Delay_ms(1);Lcd_cmd(_LCD_CURSOR_OFF);Delay_ms(1);Lcd_Out (1,1,"VOLTMETER");Delay_ms(2000);ADCON1 = 0x80;for(;;){Lcd_cmd(_LCD_CLEAR);Vin = Adc_Read(0);Lcd_Out(1,1,"mV = ");mV = (Vin * 5000) >> 10;LongToStr(mV,op);str = Ltrim(op);Lcd_Out(1,6,str);Delay_ms(1000);}}]

author: AndyC_772
author_rank: Super Contributor
timestamp: March 09, 2015, 08:10:08 am
content: This is a downside of using a 3rd party library. You don't really know how it works internally, and if it doesn't 'just work', you've a chunk of work on your hands.The code you've posted just shows the library calls, not the code that's actually going wrong.Nothing for it but to delve into the library, step through that, and compare what it's doing with the data sheet for the LCD controller.

author: Towger
author_rank: Super Contributor
timestamp: March 09, 2015, 08:46:52 am
content: Without knowing anything about the library, my guess is that Lcd Out uses X, Y. Your 1, 6 is overwriting the first string at char 1 and line 6 just wraps around back to line 1.
a tiny DVI-D implementation for FPGAs - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: March 06, 2015, 06:27:59 am
content: I've just put the finishing touches on my latest design, a DVI-D interface in a tiny corner to of a FPGA.It gives a nine-bit interface in 17 Spartan 6 slices and 8 pins.http://hamsterworks.co.nz/mediawiki/index.php/Minimal_DVI-D

author: miguelvp
author_rank: Super Contributor
timestamp: March 06, 2015, 06:41:20 am
content: Nice as always.
Arduino Ethernet shield shorted connection - Page 1
Forum section: electronics / general

author: FlevasGR
author_rank: Regular Contributor
timestamp: March 07, 2015, 09:42:01 pm
content: Today me and a friend were working on a project wich involves and Arduino and an ethernet shield. He was testing the code repeatedly on hiw setup with and arduino uno clone adn an ethernet shield. It didn't really worked (we still dont know why). The point is not there. After trying to run the project on my setup it didnt work as expected.After having the shield on my hand i noticed that few pins from the main chip (W5100) were shorted like a bad soldering job.Specificaly:After looking images from the original arduino shield the pins are not connected. Only in mine. After searcing online for the chip datasheet i found the connected pins.DATA4-DATA3DATA2-DATA1ADDR13-ADDR14ADDR11-ADDR10ADDR6-ADDR7ADDR5-ADDR4ADDR3-ADDR2I dont know if this affects the shield because i didnt had anything to test it.

author: AndreasF
author_rank: Frequent Contributor
timestamp: March 08, 2015, 10:46:41 am
content: From your pictures it looks as if most of the pins are connected together to a single trace anyway; according to theschematicto GND. So, while not pretty, it shouldn't affect the performance. Of course it may indicate poor quality somewhere else.

author: sunnyhighway
author_rank: Frequent Contributor
timestamp: March 08, 2015, 04:16:02 pm
content: I have 3 of those ethernet shields.All 3 have the same pins shorted as yours.I would say its by design, as mine are working just fine.

author: FlevasGR
author_rank: Regular Contributor
timestamp: March 15, 2015, 02:19:09 pm
content: Yep indeed. The pins are shorted inside the pcb too. Probably arduino is not using them all.
LPC4337Xpresso - Page 1
Forum section: electronics / general

author: ehughes
author_rank: Frequent Contributor
timestamp: March 03, 2015, 03:08:48 pm
content: Great deal at $25.http://www.newark.com/nxp/om13070/eval-board-lpcxpresso-lpc4337/dp/38Y7900?MER=PPSO_N_C_EverywhereElse_None
WiFi Web Mains Power switch - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: March 02, 2015, 01:18:01 pm
content: This one was started as a forum discution about the easiest way to turn OFF a tube amplifier remotelyLooking forward for your comments and suggestionsFor more details:http://esp8266-projects.blogspot.com/2015/03/esp8266-cbdb-web-power-switch-for-mains.html
MOVED: CNBC: NXP and Freescale Announce $40 Billion Merger - Page 1
Forum section: electronics / general

author: Seppy
author_rank: Unknown
timestamp: March 02, 2015, 05:14:22 am
content: This topic has been moved toGeneral Chat.https://www.eevblog.com/forum/index.php?topic=43873.0
help with pocket avr programmer - Page 1
Forum section: electronics / general

author: kjn4685
author_rank: Regular Contributor
timestamp: February 25, 2015, 04:51:43 am
content: I am having trouble with my pocket avr programmer I can not get Windows 7 to recognized my programmer drivers. If anyone help me I would appreciate it very much.

author: Psi
author_rank: Super Contributor
timestamp: February 25, 2015, 07:10:46 am
content: We need more info. Does windows 7 even detect that you have plugged something in?

author: nitro2k01
author_rank: Frequent Contributor
timestamp: February 25, 2015, 07:18:03 am
content: It's likely a USBasp. You need to install a driver to make it work. Under 64-bit Windows Vista and up, you also need to disable driver signature enforcement to be able to install the unsigned driver. See instructions and driver download here:http://www.fischl.de/usbasp/

author: kjn4685
author_rank: Regular Contributor
timestamp: February 25, 2015, 08:08:28 pm
content: Yes window's does detect the programmer,but when I run cmd.exe it will not detect the device. In device manager it shows the programmer and I think it shows the driver ,but it does not recognize it.I have whet to the sparkfun wed site and downloaded the driver there,but again it does not work.

author: kjn4685
author_rank: Regular Contributor
timestamp: March 01, 2015, 08:42:03 pm
content: Where do get disable driver signature enforcement. I looked at the web site that the gentlemen suggested,but I did not find any thing like that.Lou

author: BlueBill
author_rank: Regular Contributor
timestamp: March 01, 2015, 09:44:46 pm
content: What is the make & model of the programmer?

author: nitro2k01
author_rank: Frequent Contributor
timestamp: March 01, 2015, 10:42:46 pm
content: Quote from: kjn4685 on March 01, 2015, 08:42:03 pmPress F8 before Windows starts to boot. If you do it right, you will get a menu where you can choose that option in some form. Otherwise, look into DSEO, which lets you sign drivers for personal use.

author: kjn4685
author_rank: Regular Contributor
timestamp: March 02, 2015, 04:24:15 am
content: Thanks nitro2k01. I have a pocket avr programmer from sparkfun. And I have windows 7 is.
PIR Motion detector sensor - WIFI Web Server - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: March 03, 2015, 05:21:23 pm
content: A nice and easy project where melting together:- ESP8266 module- PIR sensor- Triac MAINS power switch moduleMixed gently. The result is a Web Enabled PIR Sensor with MAINS AC switching capabilities:And related videos:For more details:http://esp8266-projects.blogspot.com/2015/03/esp8266-pir-motion-sensor-detection.html
Help finding datasheet - Page 1
Forum section: electronics / general

author: DaGlitch
author_rank: Contributor
timestamp: February 26, 2015, 01:23:38 am
content: I think I googled my life away on this one. Trying to find the datasheet for a Motorola MC705K1CDW like this one:Haven't turned up anything from all of my searching and am wondering if i'm missing something. Any help is appreciated. Thanks guys!

author: edavid
author_rank: Super Contributor
timestamp: February 26, 2015, 01:37:08 am
content: The full part number is MC68HC705K1CDW.http://pdf1.alldatasheet.com/datasheet-pdf/view/144244/FREESCALE/MC68HC705K1CDW.html

author: amyk
author_rank: Super Contributor
timestamp: February 26, 2015, 01:38:34 am
content: MC68HC705K1CDW.Edit: edavid beat me to it by a minute.

author: Wilksey
author_rank: Super Contributor
timestamp: February 26, 2015, 01:42:06 am
content: Freescale now have all of the documentation on this device, as others have pointed out it is not the "full" part number,Direct link to FS Datasheet:http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC68HC705K1.pdf

author: DaGlitch
author_rank: Contributor
timestamp: February 26, 2015, 01:43:16 am
content: Oh wow thanks guys!
PART2 - ESP8266 - Breadboard Time - Cheap and dirty basic development board (CBD - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: February 24, 2015, 11:53:48 am
content: The second part of the ESP8266 - Breadboard Time - Cheap and dirty basic development board (CBDB)When CBDB meets LUA. And some chinese girls. Somehow. LOL.http://esp8266-projects.blogspot.ro/2015/02/esp8266-breadboard-time-cheap-and-dirty_24.htmlWaiting your thoughts about. Chinese girls or not

author: JacquesBBB
author_rank: Frequent Contributor
timestamp: February 24, 2015, 04:06:07 pm
content: I dont see the point at opening a new thread with respect tohttps://www.eevblog.com/forum/microcontrollers/esp8266-breadboard-time-cheap-and-dirty-basic-development-board-(cbdb)-!!/It seems to me that this is just unnecessary pollution.You should rather follow on your original thread.

author: TJ232
author_rank: Frequent Contributor
timestamp: February 24, 2015, 04:41:29 pm
content: Quote from: JacquesBBB on February 24, 2015, 04:06:07 pmNoted. Didn't think is "unnecessary pollution". Should I continue posting new Parts when requested in the Part one thread then? Or inPart 2 one? How is better?
know when UART serial data has been sent - Page 1
Forum section: electronics / general

author: tomshirvo
author_rank: Regular Contributor
timestamp: February 24, 2015, 02:05:31 am
content: Hi All,I'm using a max481E RS485 chip with a few Arduinos connected. This chip needs two pins changed to allow sending or receiving. The problem is that I have made a function that will set the pin then send the data and then change the pin back. Only one character is sent and the pin is set back to LOW. I think this is because the serial.write is shifting data into a buffer and then the hardware for the serial takes over and sends it.Is there a way to know when the data is sent or wait until the data is sent and then change the pin state.Code:void commWrite(char * data,int dataSize){digitalWrite(commsTX,HIGH);for(int i = 0; i < dataSize;i++){Serial.write(data);}digitalWrite(commsTX,LOW);}Thanks

author: westfw
author_rank: Super Contributor
timestamp: February 24, 2015, 02:32:10 am
content: In theory, on AVR you can check the TXC0 bit in the status register, and this is done by the Serial.flush() arduino function.(In practice, there are some complications and I'm not sure whether they ever got it working perfectly. But that's the starting point.)

author: tomshirvo
author_rank: Regular Contributor
timestamp: February 24, 2015, 03:11:13 am
content: Thanks for that, I just added Serial.flush() as that waits until the data has been sent before returning.Code:void commWrite(char * data,int dataSize){digitalWrite(commsTX,HIGH);for(int i = 0; i < dataSize;i++){Serial.write(data);}Serial.flush();digitalWrite(commsTX,LOW);}
ESP8266 - ESP-07 Module  - DOA - Fix - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: February 18, 2015, 10:58:52 am
content: I'm sure that probably you know about this new small toy in the IOT world, the ESP8266. Chinese factory hight shift has hitted the market again with a full batch of ESP-07 modules with the resonator placed wrong!!. Funny enough, it's UNDER the metal cover, offcourse.Fixed mine, don't know how to post picture here, but you can find them and more details about at:http://esp8266-projects.blogspot.com/May your hot air station be with you !!

author: TJ232
author_rank: Frequent Contributor
timestamp: February 22, 2015, 09:11:33 am
content: It seems to be around more faulty modules than expected. This one shows very well the level of QA and testing for this type of products. Low price comes from China factories via Ebay at a quite high price ...Considered important enough to be published also on hackaday.com

author: free_electron
author_rank: Super Contributor
timestamp: February 22, 2015, 11:49:53 am
content: What is testing ?

author: TJ232
author_rank: Frequent Contributor
timestamp: February 22, 2015, 12:07:14 pm
content: Quote from: free_electron on February 22, 2015, 11:49:53 amTesting them at least at a basic level before sending them as DoA to customers all over the world ?

author: Christopher
author_rank: Frequent Contributor
timestamp: February 22, 2015, 12:09:25 pm
content: You'd think they would test or even inspect at least one per batch..

author: TJ232
author_rank: Frequent Contributor
timestamp: February 22, 2015, 12:24:05 pm
content: Quote from: Christopher on February 22, 2015, 12:09:25 pmFrom my experience probably 100% NO!But when happening to a certain level, it will hurt a little bit their sellers on Ebay. I don't think everybody will enjoy like me to play arround with the hotair station on a brand new product received DOA. And this can change the way that the game is played. In a positive way I hope.
ESP8266 - NodeMCU Flasher PROBLEM? - Calling back home?? - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: February 21, 2015, 09:58:29 am
content: This is a liiitle bit strange one:I was dowloading this morning the NodeMCU Flasher program fromhttps://github.com/nodemcu/nodemcu-flasher.This is the official firmware programmer for NodeMCU DEVKIT V0.9.Has anybody any idea why is it trying to connect at startup over the internet at that address?Details athttp://esp8266-projects.blogspot.com/2015/02/esp8266-nodemcu-flasher-problem-calling.html

author: miguelvp
author_rank: Super Contributor
timestamp: February 21, 2015, 07:14:16 pm
content: Well it's in the source code in UnitFormMain.pas line 959 and it stores the response from the url in NotStrbut even if you let it communicate to get what it needs, it seems the page is no longer valid:Code:<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>404 Not Found</h1></center><hr><center>nginx/1.0.15</center></body></html>I would contact the author and study the code to see what it needs
fpga cloning/ bitstream file to rtl? - Page 1
Forum section: electronics / general

author: maor
author_rank: Contributor
timestamp: February 21, 2015, 02:35:24 pm
content: So this company I'm working for has an old product with an obsolete fpga,a xilinix xc2v300 series, and apparently they lost the boards files in a lightning strike so no vhdl... Anyone has an idea how to maybe transform a xilinx bitstream file to rtl?

author: langwadt
author_rank: Super Contributor
timestamp: February 21, 2015, 02:40:14 pm
content: Quote from: maor on February 21, 2015, 02:35:24 pm

author: Lunasix
author_rank: Regular Contributor
timestamp: February 21, 2015, 05:27:43 pm
content: No hope !
uC + accelerometer + bluetooth? - Page 1
Forum section: electronics / general

author: awallin
author_rank: Frequent Contributor
timestamp: February 16, 2015, 08:13:03 pm
content: Hi all,What's the smallest least power-hungry dev-kit or platform that has an accelerometer and a bluetooth radio on it?My gadget would measure accelerations, possibly do some calculations on the uC, and send a more-or-less continuous data stream over BT to a phone or tablet.thanks,AW

author: dannyf
author_rank: Super Contributor
timestamp: February 16, 2015, 08:15:23 pm
content: Easy: find all the dev kits you have access to with uc, an accelerometer and a bluetooth radio and compare their current consumption.

author: johnboxall
author_rank: Unknown
timestamp: February 17, 2015, 12:13:07 am
content: Quote from: awallin on February 16, 2015, 08:13:03 pmhttp://www.seeedstudio.com/depot/Seeed-Tiny-BLE-BLE-6DOF-Mbed-Platform-p-2268.html

author: awallin
author_rank: Frequent Contributor
timestamp: February 17, 2015, 06:10:45 am
content: Does anyone have experience with "LightBlue Bean" ?https://punchthrough.com/bean/I'm guessing the BLE radio does consume quite a lot of power, so the battery-life on a CR2032 would not be that great?

author: jesuscf
author_rank: Frequent Contributor
timestamp: February 21, 2015, 01:22:24 am
content: Quote from: awallin on February 16, 2015, 08:13:03 pmNot really small, but a WII remote is basically what you describe.

author: dferyance
author_rank: Regular Contributor
timestamp: February 21, 2015, 05:05:37 am
content: I have a few different BLE chips that I use and evb149's comments are right on. They can be very power efficient when used in a way where it goes into sleep mode most of the time. Even GATT is designed so you read and write properties rather than have an always connected data stream. If they are constantly sending data you will eat through batteries pretty quickly.The good thing is there are a lot of options for a combination micro-controller + BLE rather than two separate chips. It depends on what you are doing but I have seen issues due to having to interrupt program execution to service the bluetooth stack. So consider this if you think you want to use a single chip for this.
Bluetooth with HC-06 - Page 1
Forum section: electronics / general

author: ulix
author_rank: Regular Contributor
timestamp: February 17, 2015, 09:45:53 am
content: Hi,I bought a HC-06 Bluetoothmodul with adapter-board for aduino. I want to use the bluetooth with a MSP430.At first I want to change the name and password of the Bluetoothmodul. I was able to connect via AT (Putty) to the HC-06. I changed the name of the modul, but now I can't connect anymore with the modul. At first I used the Lauchpad to create a serial connection, but I thought this is the problem, so I got me a uart usb adapter. But this doesn't work as well.I tried to reset the modul, but the name didn't change, maybe the baud rate? So this is the problem why I can't connect anymore?I can connect with my mobile to the bluetoothmodul, and when connected the red led changes from flashing to glowing. When I connect the MSP430 to the HC-06 and send commands nothing happens.Can anyone help me out? I'm desperate....

author: Whales
author_rank: Super Contributor
timestamp: February 17, 2015, 11:47:09 am
content: Try flipping the RX and TX wires aroundTry every common baud rate under the sunThe Arduino serial monitor has most listed.
OMAP 3530 McBSP interface - Page 1
Forum section: electronics / general

author: rakeshm55
author_rank: Regular Contributor
timestamp: February 16, 2015, 08:22:20 am
content: Hi,We are using Omap 3530 .... this processor exchanges data with an FPGA using McBSP serial interface...We would like to operate the interface at 50Mhz....We could make the interface work till 24Mhz.... Interface shows data error at 32Mhz and 50Mhz....We use the interface in 8bit mode with 1 bit delay and MSB first...and negative edge sampling for hold time......On probing @32 and 50mhz we observed that the error is pertaining to MSB and rest of the bits were captured without error..... The waveform captured on oscilloscope showed a propagation delay of 13ns with respect to mcbSP rising edge, for the first MSB data coming after the frame is asserted....Rest of the data shows negligible delay after rising edge of mcbSP clock... since we sample on the negative edge data is not properly captured...can some one tell wht could be the issue...
STM8S003F3 - TIM2_CH1 AFR question - Page 1
Forum section: electronics / general

author: true
author_rank: Frequent Contributor
timestamp: February 16, 2015, 04:31:02 am
content: I am working on a project that will use an STM8Sx03F3, but just noticed there is no AFR to change pin PD4, which has TIM2_CH1. AFR0 enables TIM2_CH1 on PC5.Question:Does enabling AFR0 disable TIM2_CH1 on PD4, allowing for other functions or GPIO, or is TIM2_CH1 used on both pins PD4 and PC5 at the same time? I have checked the datasheet and the reference manual, searched around, and I can't find anything about this anywhere.Does anyone know? Or can someone with an STM8 setup test this?EDIT: Datasheet says "3. [] alternate function remapping option (If the same alternate function is shown twice, it indicates an exclusive choice not a duplication of the function)" - but it is referring to alternate functions enclosed in brackets. TIM2_CH1 on PD4 is not in brackets. Still, I would assume enabling this on PC5 would disable it on PD4.
Z80 schematic  - Page 1
Forum section: electronics / general

author: 22swg
author_rank: Frequent Contributor
timestamp: February 15, 2015, 02:45:05 pm
content: As Z80 is dead but won't lie down , I found this magazine (1992 ) article in my junk , and as most Z80 post are getting old , main schematic here for any one interested. ( U11-13 cmos ram is 6116.)Ed Yes I still have the board ...somewhere ? )

author: SeanB
author_rank: Super Contributor
timestamp: February 15, 2015, 03:02:43 pm
content: Was looking in the basement today, and found an old XT clone board with a 10MHz V20 processor on it. Next to it is another board with a Z80 on it, and as well a 64k S100 bus memory card.
Burn the Arduino bootloader using RPI - Page 1
Forum section: electronics / general

author: trevorford
author_rank: Contributor
timestamp: February 23, 2015, 02:32:55 am
content: I've been looking online but haven't found anything promising,I'm building a few Arduinos and I need an easy way to burn to bootloader to them, I know i can just buy a programmer but I would rather get the job done with what I have. I'm curious to know if there is a way to do this with just my Raspberry PiIf anyone knows or has a link to a good tutorial that would be great.Thanks,Trevor

author: tech5940
author_rank: Unknown
timestamp: February 23, 2015, 03:13:17 am
content: Do you have one already boot loaded Arduino? I used my original uno to boot load an Atmega chip I bought from Digikey.Sent from my iPhone using Tapatalk

author: trevorford
author_rank: Contributor
timestamp: February 23, 2015, 04:41:53 am
content: Quote from: tech5940 on February 23, 2015, 03:13:17 amI dont have one personally but one of the teachers at my school does so i might be able to use that! thank you.

author: westfw
author_rank: Super Contributor
timestamp: February 23, 2015, 08:49:01 am
content: There are a couple of Arduino sketches that will burn bootloaders onto other arduinos very quickly.I was first with "Optiloader":https://github.com/WestfW/OptiLoaderand it's probably simplest (but harder to upgrade, and not so well documented.) Also, it's designed for very fast bootloader programming: connect a cable from the arduino with the sketch to the target arduino, hit reset, and wait for the target power to cycle...Adafruit followed with their standalone programmer:https://github.com/adafruit/Standalone-Arduino-AVR-ISP-programmerwhich is more general purpose and less bootloader oriented.And the most recent is Nick Gammon's "Chip Programmer" here:http://www.gammon.com.au/breadboard(this one is probably the best-documented, especially WRT burning bootloaders.)AVR programming is via SPI, with no inconvenient high voltages, and RPi theoretically supports SPI as well, so in theory you could write a quick programmer for RPI as well. Or apparently avrdude will run on RPi:http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/(beware voltage levels, though!)
picobootSTK500: an Arduino compatible atmega bootloader in 216 bytes - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: February 09, 2015, 08:14:51 pm
content: In addition to the small size it has a unique bootloader mode toggle using the reset button.http://nerdralph.blogspot.ca/2015/02/picobootstk500-arduino-compatible.htmlI've tested it with a mega328, and will be testing it on a mega8a as well. I'd like someone with a mega168 to test it out too.
reed switch and uses - Page 1
Forum section: electronics / general

author: gatoulisss
author_rank: Contributor
timestamp: February 07, 2015, 03:45:50 pm
content: hello guys, i want to use a reed switch like an on/off switch but also as selector.i have connected it in a pull up resistor and to a pic16f88 port. the use i want to make for example is 3sec the magnet to the switch then system on if i release and put the magnet again for 3 sec there then it is becoming off, but if i dont release then after 4 sec (3-on+1) then is selecting mode A, 5 sec (3-on+2) then is selecting mode B and 6 sec (3-on+3) then is selecting mode C till i release. in the system program im checking a sensor and is in 4 mode silent (on state) 15sec ring (mode A) 30sec ring (mode B) and last 60 sec ring (mode C)i have problem in ho to use the on-off and the mode selector code... any help with it?

author: jmsc_02
author_rank: Regular Contributor
timestamp: February 08, 2015, 04:05:03 pm
content: Can you post the code? Are you using a software debounce for the pulse of the reed?A Finite State Machine with a timer can solve your problem very efficiently.By the way, have you consider a hall effect transducer like A1190 in place of the reed?
Embedded web page design software - Page 1
Forum section: electronics / general

author: wreeve
author_rank: Unknown
timestamp: February 07, 2015, 10:10:01 am
content: I am always dragged kicking and screaming to the PC when I have to update / renew some embedded web pages running on the Microchip TCIP stack’s web server. Bit of Ajax / Java script and generic HTML. I’ve never found a decent simple web development application which allows the editing / display of this. The old WebPreview app from Microchip works OK(ish) for a quick render. Text editor for editing. I wonder if there is a better solution?

author: adam1213
author_rank: Regular Contributor
timestamp: February 08, 2015, 12:28:49 am
content: Preview: you can directly open the html files in a web browser. Note: this won't display anything where the tcp stack includes a page e.g. ~inc:header.inc~Editing: there are many tools to editing web pages for those that don't wan't to learn html. e.g. dreamweaver.
IR remote help - Page 1
Forum section: electronics / general

author: Flump
author_rank: Frequent Contributor
timestamp: February 08, 2015, 02:49:21 pm
content: this is code for a steering servo for a IR remote controlled car,at the moment the servo stays in full left or right position unless the"center" button is pressed, i would like the servo to center itself when itrecieves no input from the IR remote.EX: press right button the servo steers right, release button the servo centers itselfcan anyone help ?***************************#include <Servo.h>#include <IRremote.h>unsigned long Value2 = 0xFF10EF; // leftunsigned long Value1 = 0xFF5AA5; // rightunsigned long Value3 = 0xFF38C7; // centerint RECV_PIN = 11;IRrecv irrecv(RECV_PIN);decode_results results;Servo servo1;// the setup routine runs once when you press reset:void setup() {Serial.begin(9600);irrecv.enableIRIn(); // Start the receiver// initialize the digital pin as an output.servo1.attach(10); // attack servo to digital pin 10}// the loop routine runs over and over again forever:void loop() {if (irrecv.decode(&results)) {Serial.println(results.value, HEX);irrecv.resume(); // Receive the next value}if(results.value == Value1) { //rightservo1.write(179);}if(results.value == Value2) { //leftservo1.write(1);}if(results.value == Value3) { //centerservo1.write(80);}}**********************************

author: Fantasma25
author_rank: Regular Contributor
timestamp: February 08, 2015, 03:13:55 pm
content: You could place a bool variable at the begining of the void loop(), then change it if the ir receiver received data. If it didn't receive anything, then the variable stays the same. Then, you put a statement saying that if the variable didn't change (meaning that the receiver didn't receive anything), then center the cervo.Another option is to check if the "irrecv.decode(&results)" returns true or false if it received data. If that's the case, then put an else statement after that where you center the cervo.I hope it helps

author: Kjelt
author_rank: Super Contributor
timestamp: February 08, 2015, 04:44:37 pm
content: Then also you You should add some timing, if you received a command how long should it steer that position in case no other command was received?

author: Flump
author_rank: Frequent Contributor
timestamp: February 08, 2015, 06:04:31 pm
content: Thanks for the help FantasmaThis is my first go at programming Arduino well its my first go at any programmingso I don't know how to implement your ideas but it gives me an idea what to look forso i will do some googling and see what i can find out
One serial port, One Xbee and One optional external device! - Page 1
Forum section: electronics / general

author: tomshirvo
author_rank: Regular Contributor
timestamp: February 05, 2015, 05:05:26 am
content: Hi All,Sorry I really didn't know how to subject this one.I am using an Arduino Due for my project, it will be placed in a waterproof enclosure with a few connectors coming out of it. All of the (standard/normal) communication is over Xbee ZB using API mode 2.One connector will have power but I also want to bring out the RX and TX lines of the Arduino (same pins the Xbee uses) so I can communicate with it directly. The plan was to be able to unplug the cord that powers the device, then plug in this other device which will power it and also connect to these RX and TX lines.My ideas were that if I was to replicate the Xbee framing system through this connected device it would still work. So sending data would be fine from this external device would work in a code side of things as the Arduino would think it is direct from the Xbee. The receiving is another problem but I think I can get around that by having the external device send a command to make the frame checksum incorrect so the Xbee just ignore it.So this should work in the code side of things but what about the serial electrical side of things??Will having the Xbee still connected stuff with the RX/TX from the external device. If this is the case is there anyway around this???The other way I was thinking was to get a connector with more pins and use transistors on the Xbee side to disconnect the line but I was hoping to not have to do that.I hope this can make sense to whoever reads it. My brain has it's own language that only I seem to understand.
Can all ARM7s have their contents downloaded with jtag? - Page 1
Forum section: electronics / general

author: rigrunner
author_rank: Frequent Contributor
timestamp: February 03, 2015, 11:37:05 pm
content: Hello everyone,I'm used to having to grab rom data from proms of one type or another, so this is a new area for me.I've got a device here with an AT91R40008 on it which i'd like to take a look at the rom data. It doesn't have any obvious jtag interface so i'll need to pick up any necessary connections from the chip.Is it a straight forward task to hook up a jtag to this and down/upload with it or are there different tricks and tips for each chip depending on its circuit?

author: andersm
author_rank: Super Contributor
timestamp: February 04, 2015, 12:28:09 am
content: Unless I'm terribly mistaken, the AT91R40008 is romless, so just desolder the external rom and read them out with your prommer. As a general rule, any chip with internal rom will have security mechanisms to prevent reading out the contents via debug/programming interfaces.

author: rigrunner
author_rank: Frequent Contributor
timestamp: February 04, 2015, 12:50:56 am
content: Thanks for the info.An external rom should make it much easier
[Arduino] Multiplexing Questions - Page 1
Forum section: electronics / general

author: ArcadeTV
author_rank: Contributor
timestamp: February 02, 2015, 01:46:23 pm
content: Hey Guys,I'm building a switchbox for video-signals using an Arduino Mega2560 for development and SN74CBT3245CDWR fet switches to select between my different inputs.Everything looks good and now I want to multiplex my logic to save some pins on the microcontroller.Since I never intentionally used shift registers in my projects I'm a total n00b on this matterI'll have 20 channels, so there're 20 ICs and 20 LEDs.I'm unsure about which shift registers to use, I've read that the 74HC595 may not be the best choice for dealing with LEDs.The digital switch ICs will be enabled by their /OE pin, so I guess there shouldn't be an issue with current with those...I may chose a TLC5940 for LEDs - anybody willing to suggest an alternative?This is the basic schematic, a mockup of how I suspect that I'll wire my proto:Please let me know if you consider this a bad setup or find any mistakes please.The ICs' OutputEnable pins are active low, shall I use pullup-resistors just in case?Thanks! Any help is as always very much appreciated!
STlink V2 & IAR Refuse to work - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: February 02, 2015, 08:33:22 pm
content: I have a IAR project that ruin just fine on simulator.Same project download and works well when using Friend;s Jlink, But refusre to work with my own STlink V2 With IAR debuf Set to STlink .The ST Stlink utility works if called alone, but Iar refuses to comunicated with Stlink with " Failed to load flash loader: ........"I tried everthing possible, Any help,

author: Mark
author_rank: Frequent Contributor
timestamp: February 02, 2015, 08:52:05 pm
content: I have had a similar problem with ST-Link V2 and Atollic TrueStudio for ARM. The ST-Link Utility works for programming, but trying to open the debugger results in an error message which ends in "(Not an error)". I switched to a Segger J-Link 8 and it is working fine. My J-Link clone cost <$10 from ebay.

author: dannyf
author_rank: Super Contributor
timestamp: February 02, 2015, 08:53:41 pm
content: it works for me just fine.

author: Mark
author_rank: Frequent Contributor
timestamp: February 02, 2015, 08:58:14 pm
content: Quote from: dannyf on February 02, 2015, 08:53:41 pmDo you know what firmware version your ST-Link is? I updated mine to the latest version, maybe I should have stuck with an older version.

author: dannyf
author_rank: Super Contributor
timestamp: February 02, 2015, 09:01:18 pm
content: This particular one is a J20 but I have used J16/J17 before.

author: ebclr
author_rank: Super Contributor
timestamp: February 02, 2015, 11:26:53 pm
content: St Link USB Driver v 4.3.3.0St Link _ CVLi V 2.1.0Firmware V2.J23.S4Iar Embedded Workbench 6.0 Kickstar
Raspberry Pi 2 death flash - Page 1
Forum section: electronics / general

author: FrankenPC
author_rank: Unknown
timestamp: February 08, 2015, 01:05:58 am
content: Repost From Raspberry Pi forums:http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=99042------------------------------------------------------I have discovered that my PI2 is camera-shy !Taking it's picture with a flash causes an instant power off !I've done it three times now and same thing happens each time.First two times I didn't realise what had happened as I wasn't looking at the screen at the time and only noticed a few minutes afterwards.Third time I did it just to watch the screen.... Instant power off.....Any ideas ?--------------------------------------------------------Later:Problem solution: It appears that U16, the SMPS chip, is the culprit.

author: helius
author_rank: Super Contributor
timestamp: February 08, 2015, 01:24:59 am
content: I find this type of problem fascinating. Evidently the package around U16 is translucent?And furthermore the die is not immune to light, perhaps by having an unmetallized area or being perturbable by small photoelectric voltage on its metal layer.Some chips have also been observed to work ONLY when illuminated: this effect happens when the designers forgot to isolate parts of the chip and stray charges can move from channel to gate, causing upsets. When light shines on the die, it increases the recombination rate and sweeps up these stray charges.

author: Stonent
author_rank: Super Contributor
timestamp: February 08, 2015, 02:28:42 am
content: Might be worth mentioning to the RPi guys.Edit: Replied from my phone, didn't see it was from their forum.

author: ivan747
author_rank: Super Contributor
timestamp: February 08, 2015, 02:38:09 am
content: They know about it

author: mikerr
author_rank: Newbie
timestamp: February 08, 2015, 02:52:03 pm
content: It's this chip:A small blob of blutack over it fixed the issue for me:https://twitter.com/mikered/status/564173393080356864
Cx Language - Page 1
Forum section: electronics / general

author: vvanders
author_rank: Regular Contributor
timestamp: January 25, 2015, 11:44:25 pm
content: Anyone seen this?http://cx-lang.org/I'm usually a fan of VHDL but this looks interesting, haven't spent enough time to dig in proper yet but I like their implicit FSM generation.

author: tggzzz
author_rank: Super Contributor
timestamp: January 26, 2015, 01:21:38 am
content: Such things have been done many many times in the past, with varying degrees of success.IMNSHO they need to provided a white paper describingthe difficulties with current standard practicehow their features mitigate those difficultieswhy the features they have chosen work well togetherwhy that set of features is necessary and sufficientwith references to where those features have been implemented successfully in the past. If they can't do that then they have just produced Yet Another Language Repeating Past Mistakes.A good example of what is necessary ishttp://www.oracle.com/technetwork/java/langenv-140151.htmli.e. the original Java whitepaper from 1996.For what it is worth, adopting those principles has been very successful for me. My language trajectory was Algol-60, C, HiLo, Smalltalk, Java, VHDL (and minor HDLs), with diversions into Objective-C, Prolog and various throwaway scripting languages. I avoided falling into the trap of wasting my time with, amongst others, C++, Delphi, Pascal, Modula, PERL, and others I can't instantly recall!

author: coppice
author_rank: Super Contributor
timestamp: February 02, 2015, 03:25:05 pm
content: A comparison with all the other C like hardware description languages which have come and gone would seem like an essential baseline to get anyone to take a new one seriously. I couldn't find such a comparison.
STM32 Where are JTag/SWD timings specified? - Page 1
Forum section: electronics / general

author: splin
author_rank: Frequent Contributor
timestamp: January 27, 2015, 07:23:56 pm
content: They don't seem to be in the data sheet or the reference manual.

author: Yansi
author_rank: Super Contributor
timestamp: January 27, 2015, 07:26:57 pm
content: If you will be patient, I will look for it tommorow at work. I've already worked with the spec. I think it was an APP NOTE, but not sure.Y

author: Jeroen3
author_rank: Super Contributor
timestamp: January 28, 2015, 08:32:31 pm
content: Search for the specification on the ARM website, since it's part of the core.I think this is it:http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0031c/index.html
ST10F273 bootstrap mode - Page 1
Forum section: electronics / general

author: EEVaditya
author_rank: Regular Contributor
timestamp: January 29, 2015, 12:49:27 pm
content: Hello,Can anyone guide me how to program ST10F273 in Bootstrap mode.Kindly provide the procedure & supporting technical documents.(Connection Diagram)

author: Skimask
author_rank: Super Contributor
timestamp: January 29, 2015, 01:08:58 pm
content: RTFDS

author: EEVaditya
author_rank: Regular Contributor
timestamp: January 31, 2015, 04:41:30 pm
content: Datasheet doesn't have that information

author: Skimask
author_rank: Super Contributor
timestamp: February 01, 2015, 04:58:29 pm
content: Quote from: EEVaditya on January 31, 2015, 04:41:30 pmReally...Then I guess nobody can do what you need...

author: miguelvp
author_rank: Super Contributor
timestamp: February 02, 2015, 04:25:45 am
content: http://www.st.com/web/en/resource/technical/document/datasheet/CD00157816.pdfSearch for bootstrap (33 references)Chapter 6 (page 49) has most of it but other references but the memory and flash memory sections do have more info about the bootstrap loader as well as the system reset section.
SmartBasic programming for Laird bluetooth radio - Page 1
Forum section: electronics / general

author: LukeW
author_rank: Frequent Contributor
timestamp: January 21, 2015, 05:26:25 am
content: Could somebody give me some help or advice with this code please?This is a "SmartBasic" program for a Laird BL600 Bluetooth device.It is saved in the device as the $autorun$ file. When the device is powered up in autorun mode, I'd like to be able to open a serial terminal and talk to it, type in a string terminated with a carriage return and get the appropriate response, but it does not seem to give me that expected output, after the carriage return.If you look at the attached image, the first PRINT expression works, and we have some characters typed in followed by a carriage return, but we're not getting the expected behavior.Eventually what I'd actually like to accomplish is to be able to send in a custom AT-like command over the serial link, of the form "AT+ GIOij" or something like that, for compatibility with an existing system with a different chipset which is receiving AT-like commands to control the GPIOs but which Laird devices don't support, and parse out the appropriate cases using UartReadMatch to turn on or off GPIOs, where i is the GPIO pin number and j is the desired Boolean output state.That's ultimately what I want, but I'm just getting there (or not getting there) one piece at a time, and this is really just a basic test of being able to read and parse basic expressions out of the UART.Code://==========================================//Example :: UartReadMatch.sb (See in BL600CodeSnippets.zip)DIM rc,str$,ret,char,str2$ret=1 //Function return valuechar=13 //ASCII decimal value for 'carriage return'str$="Your name is "str2$="\n\nMatch character ' ' not found \nExiting.."FUNCTION HndlrUartRx()TimerStart(0,10,0) //Allow time for data to reach rx bufferENDFUNC 1FUNCTION HndlrTmr0()rc = UartReadMatch(str$,char)PRINT "\n";str$IF rc==0 THENrc=StrSetChr(str2$,char,19) //Insert 'char', the match characterPRINT str2$str2$="\n\nMatch character not found \nExiting.." //reset str2$ret=0ELSEPRINT "\n\n\nNow type something without the letter 'a'\n"str$="You sent " //reset str$char=97 //ASCII decimal value for 'a'ret=1ENDIFENDFUNC retrc = UartOpen(9600,0,0,"CN81H")IF rc!= 0 THENPRINT "\nFailed to open UART interface with error code ";INTEGER.H' rcELSE// Successful UartOpen condition is silent.ENDIFONEVENT EVTMR0 CALL HndlrTmr0ONEVENT EVUARTRX CALL HndlrUartRxPRINT "\nWhat is your name?\n"WAITEVENT//==========================================
Generating audio tones with PIC micro - Page 1
Forum section: electronics / general

author: David_AVD
author_rank: Super Contributor
timestamp: January 19, 2015, 07:06:15 am
content: I have a project where I'm generating audio tones with a 8-bit PIC microcontroller. At present I'm using the CCP module in PWM mode.To generate a rise-fall siren, I'm stepping the frequency (PR2 value) every 50ms. There is a bit flag to keep track of whether I'm going up or down in value.This works over a short range of frequencies, but since the on-time is fixed it leaves something to be desired.Is there a way to use the PIC hardware to generate tones with 50% duty cycle without having to calculate the width (for the other registers) for each step?There are comms (38400 baud) interrupts occurring all of the time so I don't think bit banging the tones is an option.

author: AndyC_772
author_rank: Super Contributor
timestamp: January 19, 2015, 08:20:04 am
content: It's one register... write the period, shift right one place, write the 'on' time. Not hard or time consuming.Code:PR2 = period;CCPR2L = period >> 1;

author: David_AVD
author_rank: Super Contributor
timestamp: January 19, 2015, 10:57:55 pm
content: Thanks Andy. That works a treat.
looking for VDP (Video Display Processor) examples - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 11, 2015, 12:34:07 pm
content: hi guysi have been looking at these VDP (Video Display Processor) chipsYamaha V6366Yamaha V9958Yamaha V9990i have found data sheet, i'd like to see example codeanybody with experience or assembly code ?

author: legacy
author_rank: Super Contributor
timestamp: January 11, 2015, 12:36:30 pm
content: V9938manualVDP timingpretty resources found

author: nctnico
author_rank: Super Contributor
timestamp: January 11, 2015, 07:23:02 pm
content: Now you are giving me a major dejavu. The V9938 was used in MSX2 computers. I just looked up and the programming manual is still on my bookshelve! The last time I messed with one of these is probably more than 20 years ago but I recall they are pretty straightforward. What do you need to know?

author: legacy
author_rank: Super Contributor
timestamp: January 11, 2015, 09:03:23 pm
content: i have bought a few f these cheap and i want to realize a VDU connected to my soft core, i do not have the time to implement this VDU in vhdl for the moment, so i am looking for schematic and example of usage, assembly code, library, and so oni have no paper manual, just a pair of pdf about UM, i need a so called "get started"

author: nctnico
author_rank: Super Contributor
timestamp: January 11, 2015, 09:56:33 pm
content: Here is a service manual with schematics from a Philips MSX2 home computer:http://msx.hansotten.com/uploads/msxdocs/philipsvg8230sm.pdfPeople with knowledge on how to work with the V9938 probably hang out here:http://www.msx.org/forum

author: legacy
author_rank: Super Contributor
timestamp: January 12, 2015, 01:17:44 pm
content: thank youi have openedthistopic there

author: legacy
author_rank: Super Contributor
timestamp: January 12, 2015, 02:18:40 pm
content: guys, about soft core and fpga, which is the best VDU model to be implemented in vhdl ?

author: legacy
author_rank: Super Contributor
timestamp: January 12, 2015, 09:19:40 pm
content: V9938-programmers-guide(big pdf)

author: legacy
author_rank: Super Contributor
timestamp: January 13, 2015, 12:35:47 am
content: pretty informations fromhere

author: legacy
author_rank: Super Contributor
timestamp: January 13, 2015, 01:11:53 pm
content: about V9990: it seems there isTeam Bomba'sGFX9k Library. It is written in Z80 assembly for an MSX computer with GFX9k card.

author: legacy
author_rank: Super Contributor
timestamp: January 19, 2015, 02:41:11 pm
content: is anyone interested about developing a PCB with such a VDU on it ?in case V9958 is the best one trade offlet me know
USB interfacing for AVR microcontrollers - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: January 17, 2015, 06:37:25 pm
content: My new DS1054Z came in handy for looking at the USB signal on a USBasp...http://nerdralph.blogspot.ca/2015/01/usb-interfacing-for-avr-microcontrollers.html